MCPcopy Create free account
hub / github.com/google/pprof / padStringArray

Function padStringArray

profile/encode.go:398–403  ·  view source on GitHub ↗

padStringArray pads arr with enough empty strings to make arr length l when arr's length is less than l.

(arr []string, l int)

Source from the content-addressed store, hash-verified

396// padStringArray pads arr with enough empty strings to make arr
397// length l when arr's length is less than l.
398func padStringArray(arr []string, l int) []string {
399 if l <= len(arr) {
400 return arr
401 }
402 return append(arr, make([]string, l-len(arr))...)
403}
404
405func (p *ValueType) decoder() []decoder {
406 return valueTypeDecoder

Callers 1

postDecodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…