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

Method String

vector/bitvec/bits.go:111–124  ·  view source on GitHub ↗

helpful to have around for debugging

()

Source from the content-addressed store, hash-verified

109
110// helpful to have around for debugging
111func (b Bits) String() string {
112 if b.IsZero() {
113 return "empty"
114 }
115 var s strings.Builder
116 for k := range b.Len() {
117 if b.IsSet(k) {
118 s.WriteByte('1')
119 } else {
120 s.WriteByte('0')
121 }
122 }
123 return s.String()
124}
125
126func Not(a Bits) Bits {
127 not := NewFalse(a.Len())

Callers

nothing calls this directly

Calls 3

IsZeroMethod · 0.95
LenMethod · 0.95
IsSetMethod · 0.95

Tested by

no test coverage detected