예제 #1
0
 internal static extern ZLibNative.ErrorCode DeflateInit2_(
     ref ZLibNative.ZStream stream,
     ZLibNative.CompressionLevel level,
     ZLibNative.CompressionMethod method,
     int windowBits,
     int memLevel,
     ZLibNative.CompressionStrategy strategy);
예제 #2
0
        internal static unsafe ZLibNative.ErrorCode InflateEnd(ref ZLibNative.ZStream stream)
        {
            fixed(ZLibNative.ZStream *streamBytes = &stream)
            {
                byte *pBytes = (byte *)streamBytes;

                return((ZLibNative.ErrorCode)inflateEnd(pBytes));
            }
        }
예제 #3
0
        internal static unsafe ZLibNative.ErrorCode Inflate(ref ZLibNative.ZStream stream, ZLibNative.FlushCode flush)
        {
            fixed(ZLibNative.ZStream *streamBytes = &stream)
            {
                byte *pBytes = (byte *)streamBytes;

                return((ZLibNative.ErrorCode)inflate(pBytes, (int)flush));
            }
        }
예제 #4
0
        internal static unsafe ZLibNative.ErrorCode InflateInit2_(
            ref ZLibNative.ZStream stream,
            int windowBits)
        {
            fixed(byte *versionString = &ZLibVersion[0])
            fixed(ZLibNative.ZStream * streamBytes = &stream)
            {
                byte *pBytes = (byte *)streamBytes;

                return((ZLibNative.ErrorCode)inflateInit2_(pBytes, (int)windowBits, versionString, sizeof(ZLibNative.ZStream)));
            }
        }
예제 #5
0
        internal static unsafe ZLibNative.ErrorCode DeflateInit2_(
            ref ZLibNative.ZStream stream,
            ZLibNative.CompressionLevel level,
            ZLibNative.CompressionMethod method,
            int windowBits,
            int memLevel,
            ZLibNative.CompressionStrategy strategy)
        {
            fixed(byte *versionString = &ZLibVersion[0])
            fixed(ZLibNative.ZStream * streamBytes = &stream)
            {
                byte *pBytes = (byte *)streamBytes;

                return((ZLibNative.ErrorCode)deflateInit2_(pBytes, (int)level, (int)method, (int)windowBits, (int)memLevel, (int)strategy, versionString, sizeof(ZLibNative.ZStream)));
            }
        }
예제 #6
0
 internal static extern ZLibNative.ErrorCode InflateEnd(ref ZLibNative.ZStream stream);
예제 #7
0
 internal static extern ZLibNative.ErrorCode Inflate(ref ZLibNative.ZStream stream, ZLibNative.FlushCode flush);
예제 #8
0
 internal static extern ZLibNative.ErrorCode InflateInit2_(ref ZLibNative.ZStream stream, int windowBits);
예제 #9
0
 internal static extern ZLibNative.ErrorCode DeflateReset(ref ZLibNative.ZStream stream);