コード例 #1
0
ファイル: ZLibInterop.cs プロジェクト: zlatanov/websockets
 internal static unsafe ZLibNative.ErrorCode InflateEnd(ref ZLibNative.ZStream stream)
 {
     fixed(ZLibNative.ZStream *streamBytes = &stream)
     {
         return(InflateEnd((Byte *)streamBytes));
     }
 }
コード例 #2
0
ファイル: ZLibInterop.cs プロジェクト: zlatanov/websockets
 internal static unsafe ZLibNative.ErrorCode Inflate(ref ZLibNative.ZStream stream, ZLibNative.FlushCode flush)
 {
     fixed(ZLibNative.ZStream *streamBytes = &stream)
     {
         return(Inflate((Byte *)streamBytes, (Int32)flush));
     }
 }
コード例 #3
0
ファイル: ZLibInterop.cs プロジェクト: zlatanov/websockets
 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)));
     }
 }
コード例 #4
0
ファイル: ZLibInterop.cs プロジェクト: zlatanov/websockets
        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)));
            }
        }