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

Method writeSlice

flate/dict_decoder.go:80–82  ·  view source on GitHub ↗

writeSlice returns a slice of the available buffer to write data to. This invariant will be kept: len(s) <= availWrite()

()

Source from the content-addressed store, hash-verified

78//
79// This invariant will be kept: len(s) <= availWrite()
80func (dd *dictDecoder) writeSlice() []byte {
81 return dd.hist[dd.wrPos:]
82}
83
84// writeMark advances the writer pointer by cnt.
85//

Callers 2

TestDictDecoderFunction · 0.95
copyDataMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestDictDecoderFunction · 0.76