MCPcopy Create free account
hub / github.com/brimdata/super / AppendBool

Function AppendBool

primitive.go:18–23  ·  view source on GitHub ↗
(zb scode.Bytes, b bool)

Source from the content-addressed store, hash-verified

16type TypeOfBool struct{}
17
18func AppendBool(zb scode.Bytes, b bool) scode.Bytes {
19 if b {
20 return append(zb, 1)
21 }
22 return append(zb, 0)
23}
24
25func EncodeBool(b bool) scode.Bytes {
26 return AppendBool(nil, b)

Callers 3

appendPrimitiveMethod · 0.92
handleTokenMethod · 0.92
EncodeBoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected