示例#1
0
 public static LzmaResult lzma_stream_encoder_mt(ref LzmaStream stream, ref LzmaMT mt)
 {
     if (SupportsMultiThreading)
     {
         return(lzma_stream_encoder_mt_ptr(ref stream, ref mt));
     }
     else
     {
         throw new PlatformNotSupportedException("lzma_stream_encoder_mt is not supported on this platform. Check SupportsMultiThreading to see whether you can use this functionality.");
     }
 }
示例#2
0
 public static LzmaResult lzma_easy_encoder(ref LzmaStream stream, uint preset, LzmaCheck check) => lzma_easy_encoder_ptr(ref stream, preset, check);
示例#3
0
 public static void lzma_end(ref LzmaStream stream) => lzma_end_ptr(ref stream);
示例#4
0
 public static LzmaResult lzma_code(ref LzmaStream stream, LzmaAction action) => lzma_code_ptr(ref stream, action);
示例#5
0
 public static LzmaResult lzma_alone_decoder(ref LzmaStream stream, ulong memLimit) => lzma_alone_decoder_ptr(ref stream, memLimit);
示例#6
0
 public static LzmaResult lzma_auto_decoder(ref LzmaStream stream, ulong memLimit, LzmaDecodeFlags flags) => lzma_auto_decoder_ptr(ref stream, memLimit, flags);