MCPcopy Create free account
hub / github.com/segmentio/encoding / Bool

Method Bool

proto/message.go:52–58  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

50type FieldNumber uint
51
52func (f FieldNumber) Bool(v bool) RawMessage {
53 var x uint64
54 if v {
55 x = 1
56 }
57 return AppendVarint(nil, f, x)
58}
59
60func (f FieldNumber) Int(v int) RawMessage {
61 return f.Int64(int64(v))

Callers 2

ValueMethod · 0.95
parseRewriteTemplateBoolFunction · 0.45

Calls 1

AppendVarintFunction · 0.85

Tested by

no test coverage detected