PNGMask.PNG.ReadData C# (CSharp) Method

ReadData() static private method

static private ReadData ( Stream data, byte &buffer ) : void
data Stream
buffer byte
return void
        static void ReadData(Stream data, ref byte[] buffer)
        {
            if (data.Read(buffer, 0, buffer.Length) < buffer.Length)
                throw new PNGMaskException("Unexpected EOF, PNG corrupt?");
        }