MCPcopy
hub / github.com/klauspost/compress / WithDecoderLowmem

Function WithDecoderLowmem

zstd/decoder_options.go:47–55  ·  view source on GitHub ↗

WithDecoderLowmem will set whether to use a lower amount of memory, but possibly have to allocate more while running. Cannot be changed with ResetWithOptions.

(b bool)

Source from the content-addressed store, hash-verified

45// but possibly have to allocate more while running.
46// Cannot be changed with ResetWithOptions.
47func WithDecoderLowmem(b bool) DOption {
48 return func(o *decoderOptions) error {
49 if o.resetOpt && b != o.lowMem {
50 return errors.New("WithDecoderLowmem cannot be changed on Reset")
51 }
52 o.lowMem = b
53 return nil
54 }
55}
56
57// WithDecoderConcurrency sets the number of created decoders.
58// When decoding block with DecodeAll, this will limit the number

Callers 14

ReadMethod · 0.92
FuzzDecodeAllFunction · 0.85
FuzzDecoderFunction · 0.85
DecodeToFunction · 0.85
TestNewDecoderMemoryFunction · 0.85
TestNewDecoderBadFunction · 0.85
TestDecoderRegressionFunction · 0.85
benchmarkDecoderWithFileFunction · 0.85

Calls

no outgoing calls

Tested by 10

FuzzDecodeAllFunction · 0.68
FuzzDecoderFunction · 0.68
TestNewDecoderMemoryFunction · 0.68
TestNewDecoderBadFunction · 0.68
TestDecoderRegressionFunction · 0.68
benchmarkDecoderWithFileFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…