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

Method appendTo

zstd/blockenc.go:134–136  ·  view source on GitHub ↗

appendTo will append the block header to a slice.

(b []byte)

Source from the content-addressed store, hash-verified

132
133// appendTo will append the block header to a slice.
134func (h blockHeader) appendTo(b []byte) []byte {
135 return append(b, uint8(h), uint8(h>>8), uint8(h>>16))
136}
137
138// String returns a string representation of the block.
139func (h blockHeader) String() string {

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected