public static ReadBytes ( this s, int count ) : byte[] | ||
s | this | |
count | int | |
Результат | byte[] |
public static byte[] ReadBytes(this Stream s, int count)
{
if (count < 0)
throw new ArgumentOutOfRangeException("count", "Non-negative number required.");
var buffer = new byte[count];
s.ReadBytes(buffer, 0, count);
return buffer;
}
StreamExts::ReadBytes ( this s, byte buffer, int offset, int count ) : void |