AmaroK86.MassEffect3.ZlibBlock.ZBlock.Compress C# (CSharp) Method

Compress() public static method

public static Compress ( Stream inStream, int count ) : byte[]
inStream Stream
count int
return byte[]
        public static byte[] Compress(Stream inStream, int count)
        {
            if (count < 0)
                throw new FormatException();
            if (inStream.Position + count > inStream.Length)
                throw new ArgumentOutOfRangeException();
            byte[] buffer = new byte[count];
            inStream.Read(buffer, 0, count);
            return Compress(buffer,0,count);
        }

Same methods

ZBlock::Compress ( byte buffer ) : byte[]
ZBlock::Compress ( byte buffer, int offset, int count ) : byte[]