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

Method setSize

zstd/blockenc.go:122–125  ·  view source on GitHub ↗

setSize will store the compressed size of a block.

(v uint32)

Source from the content-addressed store, hash-verified

120
121// setSize will store the compressed size of a block.
122func (h *blockHeader) setSize(v uint32) {
123 const mask = 7
124 *h = (*h)&mask | blockHeader(v<<3)
125}
126
127// setType sets the block type.
128func (h *blockHeader) setType(t blockType) {

Callers 6

encodeRawMethod · 0.95
encodeRawToMethod · 0.95
encodeLitsMethod · 0.95
encodeRLEMethod · 0.95
encodeMethod · 0.95
encodeAllMethod · 0.95

Calls 1

blockHeaderTypeAlias · 0.85

Tested by

no test coverage detected