OpenRA.StreamExts.ReadAllBytes C# (CSharp) Method

ReadAllBytes() public static method

public static ReadAllBytes ( this s ) : byte[]
s this
return byte[]
        public static byte[] ReadAllBytes(this Stream s)
        {
            using (s)
                return s.ReadBytes((int)(s.Length - s.Position));
        }