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

Function encodeBool

profile/proto.go:153–159  ·  view source on GitHub ↗
(b *buffer, tag int, x bool)

Source from the content-addressed store, hash-verified

151}
152
153func encodeBool(b *buffer, tag int, x bool) {
154 if x {
155 encodeUint64(b, tag, 1)
156 } else {
157 encodeUint64(b, tag, 0)
158 }
159}
160
161func encodeBoolOpt(b *buffer, tag int, x bool) {
162 if x {

Callers 1

encodeBoolOptFunction · 0.85

Calls 1

encodeUint64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…