Simplify ReadBytes implementation

This commit is contained in:
Matt Nadareski
2024-04-16 11:05:54 -04:00
parent 6074fa3c3f
commit 046bb5875a

View File

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