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

Function boolToUint64

value.go:75–80  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

73func NewTypeValue(t Type) Value { return NewValue(TypeType, EncodeTypeValue(t)) }
74
75func boolToUint64(b bool) uint64 {
76 if b {
77 return 1
78 }
79 return 0
80}
81
82// Uint returns v's underlying value. It panics if v's underlying type is not
83// TypeUint8, TypeUint16, TypeUint32, or TypeUint64.

Callers 1

NewBoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected