1 write to _context
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
195_context = Interop.Zstd.ZSTD_createCCtx();
25 references to _context
System.IO.Compression (25)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (25)
45SetQuality(_context, quality); 50_context.Dispose(); 70_context.Dispose(); 89SetQuality(_context, quality); 93SetWindowLog(_context, windowLog2); 98_context.Dispose(); 122SetWindowLog(_context, windowLog2); 127_context.Dispose(); 152SetQuality(_context, compressionOptions.Quality); 157SetWindowLog(_context, compressionOptions.WindowLog2); 162SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_checksumFlag, 1); 167SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_enableLongDistanceMatching, 1); 172SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_targetCBlockSize, compressionOptions.TargetBlockSize); 177SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_hashLog, compressionOptions.HashLog2); 182SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_chainLog, compressionOptions.ChainLog2); 187_context.Dispose(); 192[MemberNotNull(nameof(_context))] 196if (_context.IsInvalid) 266nuint result = Interop.Zstd.ZSTD_compressStream2(_context, ref output, ref input, endDirective); 407_context.Reset(); 428nuint result = _context.SetPrefix(prefix); 456if (ZstandardUtils.IsError(Interop.Zstd.ZSTD_CCtx_setPledgedSrcSize(_context, (ulong)length), out var error)) 466_context.Dispose(); 498Debug.Assert(_context != null); 501_context.SetDictionary(dictionary.CompressionDictionary);