Guarantee a return value for ReadBytes

This commit is contained in:
Matt Nadareski
2024-04-16 11:08:13 -04:00
parent 046bb5875a
commit 602b951be7

View File

@@ -24,7 +24,7 @@ namespace SabreTools.IO
/// <summary>
/// Read a UInt8[] from the stream
/// </summary>
public static byte[]? ReadBytes(this Stream stream, int count)
public static byte[] ReadBytes(this Stream stream, int count)
=> ReadToBuffer(stream, count);
/// <summary>