27 internal Inflater(
int windowBits,
long uncompressedSize = -1
L)
43 fixed (
byte* bufPtr = &b)
56 fixed (
byte* ptr =
bytes)
92 _zlibStream.AvailIn = 0u;
127 if (*ptr != 31 || (availIn > 1 && ptr[1] != 139))
133 _zlibStream.NextIn = nextIn;
134 _zlibStream.AvailIn = availIn;
151 return _zlibStream.AvailIn == 0;
169 _zlibStream.AvailIn = (uint)inputBuffer.
Length;
201 [MemberNotNull(
"_zlibStream")]
232 _zlibStream.NextOut = (
IntPtr)bufPtr;
233 _zlibStream.AvailOut = (uint)
length;
273 _zlibStream.AvailIn = 0u;
static void SuppressFinalize(object obj)
void DeallocateInputBufferHandle()
unsafe void ReadOutput(byte *bufPtr, int length, out int bytesRead)
readonly long _uncompressedSize
unsafe int InflateVerified(byte *bufPtr, int length)
void Dispose(bool disposing)
unsafe ZLibNative.ErrorCode ReadInflateOutput(byte *bufPtr, int length, ZLibNative.FlushCode flushCode, out int bytesRead)
Inflater(int windowBits, long uncompressedSize=-1L)
void SetInput(byte[] inputBuffer, int startIndex, int count)
MemoryHandle _inputBufferHandle
unsafe bool Inflate(out byte b)
unsafe int Inflate(Span< byte > destination)
ZLibNative.ErrorCode Inflate(ZLibNative.FlushCode flushCode)
ZLibNative.ZLibStreamHandle _zlibStream
unsafe bool ResetStreamForLeftoverInput()
long _currentInflatedCount
void InflateInit(int windowBits)
unsafe bool IsInputBufferHandleAllocated
unsafe int Inflate(byte[] bytes, int offset, int length)
unsafe void SetInput(ReadOnlyMemory< byte > inputBuffer)
static ErrorCode CreateZLibStreamForInflate(out ZLibStreamHandle zLibStreamHandle, int windowBits)
static readonly IntPtr ZNullPtr
static byte Min(byte val1, byte val2)
static string UnsupportedCompression
static string ZLibErrorNotEnoughMemory
static string ZLibErrorVersionMismatch
static string ZLibErrorDLLLoadError
static string ZLibErrorInconsistentStream
static string ZLibErrorUnexpected
static string ZLibErrorIncorrectInitParameters
unsafe void * ToPointer()
unsafe MemoryHandle Pin()