1 write to _context
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
196_context = Interop.Zstd.ZSTD_createCCtx();
25 references to _context
System.IO.Compression (25)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (25)
46SetQuality(_context, quality); 51_context.Dispose(); 71_context.Dispose(); 90SetQuality(_context, quality); 94SetWindowLog(_context, windowLog2); 99_context.Dispose(); 123SetWindowLog(_context, windowLog2); 128_context.Dispose(); 153SetQuality(_context, compressionOptions.Quality); 158SetWindowLog(_context, compressionOptions.WindowLog2); 163SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_checksumFlag, 1); 168SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_enableLongDistanceMatching, 1); 173SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_targetCBlockSize, compressionOptions.TargetBlockSize); 178SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_hashLog, compressionOptions.HashLog2); 183SetParameter(_context, Interop.Zstd.ZstdCParameter.ZSTD_c_chainLog, compressionOptions.ChainLog2); 188_context.Dispose(); 193[MemberNotNull(nameof(_context))] 197if (_context.IsInvalid) 267nuint result = Interop.Zstd.ZSTD_compressStream2(_context, ref output, ref input, endDirective); 407_context.Reset(); 426nuint result = _context.SetPrefix(prefix); 454if (ZstandardUtils.IsError(Interop.Zstd.ZSTD_CCtx_setPledgedSrcSize(_context, (ulong)length), out var error)) 464_context.Dispose(); 496Debug.Assert(_context != null); 499_context.SetDictionary(dictionary.CompressionDictionary);