1 write to _context
System.IO.Compression.Zstandard (1)
System\IO\Compression\ZstandardEncoder.cs (1)
184
_context
= Interop.Zstd.ZSTD_createCCtx();
23 references to _context
System.IO.Compression.Zstandard (23)
System\IO\Compression\ZstandardEncoder.cs (23)
44
SetQuality(
_context
, quality);
49
_context
.Dispose();
69
_context
.Dispose();
88
SetQuality(
_context
, quality);
92
SetWindowLog(
_context
, windowLog);
97
_context
.Dispose();
121
SetWindowLog(
_context
, windowLog);
126
_context
.Dispose();
151
SetQuality(
_context
, compressionOptions.Quality);
156
SetWindowLog(
_context
, compressionOptions.WindowLog);
161
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_checksumFlag, 1);
166
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_enableLongDistanceMatching, 1);
171
SetParameter(
_context
, Interop.Zstd.ZstdCParameter.ZSTD_c_targetCBlockSize, compressionOptions.TargetBlockSize);
176
_context
.Dispose();
181
[MemberNotNull(nameof(
_context
))]
185
if (
_context
.IsInvalid)
255
nuint result = Interop.Zstd.ZSTD_compressStream2(
_context
, ref output, ref input, endDirective);
395
_context
.Reset();
411
nuint result =
_context
.SetPrefix(prefix);
439
if (ZstandardUtils.IsError(Interop.Zstd.ZSTD_CCtx_setPledgedSrcSize(
_context
, (ulong)length), out var error))
449
_context
.Dispose();
481
Debug.Assert(
_context
!= null);
484
_context
.SetDictionary(dictionary.CompressionDictionary);