internal void InitializeDecoder() { _state = Interop.Brotli.BrotliDecoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero); if (_state.IsInvalid) { throw new IOException(SR.BrotliDecoder_Create); } }
internal static partial BOOL BrotliDecoderIsFinished(SafeBrotliDecoderHandle state);
internal static unsafe partial int BrotliDecoderDecompressStream( SafeBrotliDecoderHandle state, ref nuint availableIn, byte **nextIn, ref nuint availableOut, byte **nextOut, out nuint totalOut);
internal static extern BOOL BrotliDecoderIsFinished(SafeBrotliDecoderHandle state);
internal static extern unsafe int BrotliDecoderDecompressStream( SafeBrotliDecoderHandle state, ref size_t availableIn, byte **nextIn, ref size_t availableOut, byte **nextOut, out size_t totalOut);
internal static bool BrotliDecoderIsFinished(SafeBrotliDecoderHandle state) => throw new PlatformNotSupportedException();
internal static unsafe int BrotliDecoderDecompressStream( SafeBrotliDecoderHandle state, ref size_t availableIn, byte **nextIn, ref size_t availableOut, byte **nextOut, out size_t totalOut) => throw new PlatformNotSupportedException();