public ZStandardCompressor(CompressionOptions compressionOptions = null, DecompressionOptions decompressionOptions = null) { Compressor = compressionOptions != null ? new ZstdNet.Compressor(compressionOptions) : new ZstdNet.Compressor(); Decompressor = decompressionOptions != null ? new Decompressor(decompressionOptions) : new Decompressor(); }
// Token: 0x06000010 RID: 16 RVA: 0x000021FC File Offset: 0x000003FC public byte[] Wrap(ArraySegment <byte> src) { if (src.Count == 0) { return(new byte[0]); } int compressBound = Compressor.GetCompressBound(src.Count); byte[] array = new byte[compressBound]; int num = this.Wrap(src, array, 0); if (compressBound == num) { return(array); } byte[] array2 = new byte[num]; Array.Copy(array, array2, num); return(array2); }