OpenRA.StreamExts.ReadBytes C# (CSharp) Method

ReadBytes() public static method

public static ReadBytes ( this s, int count ) : byte[]
s this
count int
return 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;
        }

Same methods

StreamExts::ReadBytes ( this s, byte buffer, int offset, int count ) : void