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

Function decodeBool

profile/proto.go:374–384  ·  view source on GitHub ↗
(b *buffer, x *bool)

Source from the content-addressed store, hash-verified

372}
373
374func decodeBool(b *buffer, x *bool) error {
375 if err := checkType(b, 0); err != nil {
376 return err
377 }
378 if int64(b.u64) == 0 {
379 *x = false
380 } else {
381 *x = true
382 }
383 return nil
384}

Callers 1

encode.goFile · 0.85

Calls 1

checkTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…