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