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)
46
SetQuality(
_context
, quality);
51
_context
.Dispose();
71
_context
.Dispose();
90
SetQuality(
_context
, quality);
94
SetWindowLog(
_context
, windowLog);
99
_context
.Dispose();
123
SetWindowLog(
_context
, windowLog);
128
_context
.Dispose();
153
SetQuality(
_context
, compressionOptions.Quality);
158
SetWindowLog(
_context
, compressionOptions.WindowLog);
163
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_checksumFlag, 1);
168
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_enableLongDistanceMatching, 1);
173
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_targetCBlockSize, compressionOptions.TargetBlockSize);
178
_context
.Dispose();
183
[MemberNotNull(nameof(
_context
))]
187
if (
_context
.IsInvalid)
257
nuint result = Interop.Zstd.ZSTD_compressStream2(
_context
, ref output, ref input, endDirective);
397
_context
.Reset();
413
nuint result =
_context
.SetPrefix(prefix);
441
if (ZstandardUtils.IsError(Interop.Zstd.ZSTD_CCtx_setPledgedSrcSize(
_context
, (ulong)length), out var error))
451
_context
.Dispose();
483
Debug.Assert(
_context
!= null);
486
_context
.SetDictionary(dictionary.CompressionDictionary);