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(); }
public void ReadSkippingAllRows() { if (FirstChunksNotYetRead()) { ReadFirstChunks(); } iIdatCstream.DisableCrcCheck(); try { int num; do { num = iIdatCstream.Read(rowbfilter, 0, rowbfilter.Length); }while (num >= 0); } catch (IOException cause) { throw new PngjInputException("error in raw read of IDAT", cause); } offset = iIdatCstream.GetOffset(); if (offset < 0) { throw new PngjExceptionInternal("bad offset ??" + offset.ToString()); } if (MaxTotalBytesRead > 0 && offset >= MaxTotalBytesRead) { throw new PngjInputException("Reading IDAT: Maximum total bytes to read exceeeded: " + MaxTotalBytesRead.ToString() + " offset:" + offset.ToString()); } ReadLastAndClose(); }