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

Function checkType

profile/proto.go:259–264  ·  view source on GitHub ↗
(b *buffer, typ int)

Source from the content-addressed store, hash-verified

257}
258
259func checkType(b *buffer, typ int) error {
260 if b.typ != typ {
261 return errors.New("type mismatch")
262 }
263 return nil
264}
265
266func decodeMessage(b *buffer, m message) error {
267 if err := checkType(b, 2); err != nil {

Callers 5

decodeMessageFunction · 0.85
decodeInt64Function · 0.85
decodeUint64Function · 0.85
decodeStringFunction · 0.85
decodeBoolFunction · 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…