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

Method size

zstd/blockenc.go:236–238  ·  view source on GitHub ↗

size returns the output size with currently set values.

()

Source from the content-addressed store, hash-verified

234
235// size returns the output size with currently set values.
236func (h literalsHeader) size() int {
237 return int(h >> 60)
238}
239
240func (h literalsHeader) String() string {
241 return fmt.Sprintf("Type: %d, SizeFormat: %d, Size: 0x%d, Bytes:%d", literalsBlockType(h&3), (h>>2)&3, h&((1<<60)-1)>>4, h>>60)

Callers 2

encodeLitsMethod · 0.95
encodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected