Hjg.Pngcs.PngReader.ReadSkippingAllRows C# (CSharp) Method

ReadSkippingAllRows() public method

public ReadSkippingAllRows ( ) : void
return void
        public void ReadSkippingAllRows()
        {
            if (FirstChunksNotYetRead())
                ReadFirstChunks();
            // we read directly from the compressed stream, we dont decompress nor chec CRC
            iIdatCstream.DisableCrcCheck();
            try {
                int r;
                do {
                    r = iIdatCstream.Read(rowbfilter, 0, rowbfilter.Length);
                } while (r >= 0);
            } catch (IOException e) {
                throw new PngjInputException("error in raw read of IDAT", e);
            }
            offset = iIdatCstream.GetOffset();
            if (offset < 0)
                throw new PngjExceptionInternal("bad offset ??" + offset);
            if (MaxTotalBytesRead > 0 && offset >= MaxTotalBytesRead)
                throw new PngjInputException("Reading IDAT: Maximum total bytes to read exceeeded: " + MaxTotalBytesRead
                        + " offset:" + offset);
            ReadLastAndClose();
        }