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

Function EncodeBool

primitive.go:25–27  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

23}
24
25func EncodeBool(b bool) scode.Bytes {
26 return AppendBool(nil, b)
27}
28
29func DecodeBool(zv scode.Bytes) bool {
30 return zv[0] != 0

Callers 6

SerializeMethod · 0.92
encodeAnyMethod · 0.92
BuildPrimitiveFunction · 0.92
GenValueFunction · 0.92
buildScodeMethod · 0.92
BytesMethod · 0.85

Calls 1

AppendBoolFunction · 0.85

Tested by

no test coverage detected