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

Method Reset

zstd/enc_fast.go:793–798  ·  view source on GitHub ↗

ResetDict will reset and set a dictionary if not nil

(d *dict, singleBlock bool)

Source from the content-addressed store, hash-verified

791
792// ResetDict will reset and set a dictionary if not nil
793func (e *fastEncoder) Reset(d *dict, singleBlock bool) {
794 e.resetBase(d, singleBlock)
795 if d != nil {
796 panic("fastEncoder: Reset with dict")
797 }
798}
799
800func (e *fastEncoder) ResetPrefix(prefix []byte) {
801 e.resetBasePrefix(prefix)

Callers

nothing calls this directly

Calls 1

resetBaseMethod · 0.80

Tested by

no test coverage detected