1 write to _context
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
186_context = Interop.Zstd.ZSTD_createCCtx();
23 references to _context
System.IO.Compression (23)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (23)
46SetQuality(_context, quality); 51_context.Dispose(); 71_context.Dispose(); 90SetQuality(_context, quality); 94SetWindowLog(_context, windowLog); 99_context.Dispose(); 123SetWindowLog(_context, windowLog); 128_context.Dispose(); 153SetQuality(_context, compressionOptions.Quality); 158SetWindowLog(_context, compressionOptions.WindowLog); 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); 178_context.Dispose(); 183[MemberNotNull(nameof(_context))] 187if (_context.IsInvalid) 257nuint result = Interop.Zstd.ZSTD_compressStream2(_context, ref output, ref input, endDirective); 397_context.Reset(); 413nuint result = _context.SetPrefix(prefix); 441if (ZstandardUtils.IsError(Interop.Zstd.ZSTD_CCtx_setPledgedSrcSize(_context, (ulong)length), out var error)) 451_context.Dispose(); 483Debug.Assert(_context != null); 486_context.SetDictionary(dictionary.CompressionDictionary);