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

Function getString

profile/encode.go:586–596  ·  view source on GitHub ↗
(strings []string, strng *int64, err error)

Source from the content-addressed store, hash-verified

584}
585
586func getString(strings []string, strng *int64, err error) (string, error) {
587 if err != nil {
588 return "", err
589 }
590 s := int(*strng)
591 if s < 0 || s >= len(strings) {
592 return "", errMalformed
593 }
594 *strng = 0
595 return strings[s], nil
596}

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…