private static int MSB = -2147483648; // 0x80000000 public DicomJpegLosslessDecoderImpl(IByteBuffer data) { _buffer = new ByteBufferByteSource(data) { Endian = Endian.Big }; _frame = new FrameHeader(); _scan = new ScanHeader(); _quantTable = new QuantizationTable(); _huffTable = new HuffmanTable(); }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { _huffTable = null; _quantTable = null; _quantTable = null; _scan = null; _frame = null; _buffer = null; } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. disposedValue = true; } }