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

Method EncodeNoHist

zstd/enc_better.go:573–576  ·  view source on GitHub ↗

EncodeNoHist will encode a block with no history and no following blocks. Most notable difference is that src will not be copied for history and we do not need to check for max match length.

(blk *blockEnc, src []byte)

Source from the content-addressed store, hash-verified

571// Most notable difference is that src will not be copied for history and
572// we do not need to check for max match length.
573func (e *betterFastEncoder) EncodeNoHist(blk *blockEnc, src []byte) {
574 e.ensureHist(len(src))
575 e.Encode(blk, src)
576}
577
578// Encode improves compression...
579func (e *betterFastEncoderDict) Encode(blk *blockEnc, src []byte) {

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.95
ensureHistMethod · 0.80

Tested by

no test coverage detected