internal static unsafe ZLibNative.ErrorCode InflateEnd(ref ZLibNative.ZStream stream) { fixed(ZLibNative.ZStream *streamBytes = &stream) { return(InflateEnd((Byte *)streamBytes)); } }
internal static unsafe ZLibNative.ErrorCode Inflate(ref ZLibNative.ZStream stream, ZLibNative.FlushCode flush) { fixed(ZLibNative.ZStream *streamBytes = &stream) { return(Inflate((Byte *)streamBytes, (Int32)flush)); } }
internal static unsafe ZLibNative.ErrorCode InflateInit2_(ref ZLibNative.ZStream stream, Int32 windowBits) { fixed(Byte *versionString = &ZLibVersion[0]) fixed(ZLibNative.ZStream * streamBytes = &stream) { return(InflateInit((Byte *)streamBytes, windowBits, versionString, sizeof(ZLibNative.ZStream))); } }
internal static unsafe ZLibNative.ErrorCode DeflateInit2_( ref ZLibNative.ZStream stream, ZLibNative.CompressionLevel level, ZLibNative.CompressionMethod method, Int32 windowBits, Int32 memLevel, ZLibNative.CompressionStrategy strategy) { fixed(Byte *versionString = &ZLibVersion[0]) fixed(ZLibNative.ZStream * streamBytes = &stream) { Byte *pBytes = (Byte *)streamBytes; return((ZLibNative.ErrorCode)DeflateInit(pBytes, (Int32)level, (Int32)method, (Int32)windowBits, memLevel, (Int32)strategy, versionString, sizeof(ZLibNative.ZStream))); } }