Пример #1
0
 internal void InitializeDecoder()
 {
     _state = Interop.Brotli.BrotliDecoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
     if (_state.IsInvalid)
     {
         throw new IOException(SR.BrotliDecoder_Create);
     }
 }
Пример #2
0
 internal static partial BOOL BrotliDecoderIsFinished(SafeBrotliDecoderHandle state);
Пример #3
0
 internal static unsafe partial int BrotliDecoderDecompressStream(
     SafeBrotliDecoderHandle state, ref nuint availableIn, byte **nextIn,
     ref nuint availableOut, byte **nextOut, out nuint totalOut);
Пример #4
0
 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);
Пример #6
0
 internal static bool BrotliDecoderIsFinished(SafeBrotliDecoderHandle state) =>
 throw new PlatformNotSupportedException();
Пример #7
0
 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();