private void InitializeDecoder() { State = BrotliNative.BrotliDecoderCreateInstance(); if (State == IntPtr.Zero) { throw new System.IO.IOException(BrotliEx.DecoderInstanceCreate);//TODO Create exception } BufferStream = new MemoryStream(); }
internal void InitializeDecoder() { BrotliNativeState = BrotliNative.BrotliDecoderCreateInstance(); LastDecoderResult = BrotliDecoderResult.NeedsMoreInput; if (BrotliNativeState == IntPtr.Zero) { throw new System.Exception(BrotliEx.DecoderInstanceCreate); } CompressMode = false; }
private void InitializeDecoder() { State = BrotliNative.BrotliDecoderCreateInstance(); if (State == IntPtr.Zero) { throw new System.IO.IOException(BrotliEx.DecoderInstanceCreate); } LastDecoderResult = BrotliDecoderResult.NeedsMoreInput; _bufferStream = new MemoryStream(); }