MCPcopy
hub / github.com/cloudflare/ebpf_exporter / zeroPaddedString

Function zeroPaddedString

decoder/decoder_test.go:485–491  ·  view source on GitHub ↗
(in string, size int)

Source from the content-addressed store, hash-verified

483}
484
485func zeroPaddedString(in string, size int) []byte {
486 if len(in) > size {
487 panic(fmt.Sprintf("string %q is longer than requested size %d", in, size))
488 }
489
490 return append([]byte(in), make([]byte, size-len(in))...)
491}

Callers 3

TestDecodeLabelsFunction · 0.85
TestDecodeSkipLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected