MCPcopy Create free account
hub / github.com/klauspost/compress / WithDecoderDictDelete

Function WithDecoderDictDelete

zstd/decoder_options.go:203–213  ·  view source on GitHub ↗

WithDecoderDictDelete removes dictionaries by ID. If no ids are passed, all dictionaries are deleted. Should be used with ResetWithOptions.

(ids ...uint32)

Source from the content-addressed store, hash-verified

201// If no ids are passed, all dictionaries are deleted.
202// Should be used with ResetWithOptions.
203func WithDecoderDictDelete(ids ...uint32) DOption {
204 return func(o *decoderOptions) error {
205 if len(ids) == 0 {
206 clear(o.dicts)
207 }
208 for _, id := range ids {
209 delete(o.dicts, id)
210 }
211 return nil
212 }
213}

Callers 2

TestDecoderDictDeleteFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestDecoderDictDeleteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…