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