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

Method Set

vector/bitvec/bits.go:61–63  ·  view source on GitHub ↗

Set causes the bit at position slot to become true on an allocated bitvector, where slot must be smaller than the length of the bit vector.

(slot uint32)

Source from the content-addressed store, hash-verified

59// Set causes the bit at position slot to become true on an allocated
60// bitvector, where slot must be smaller than the length of the bit vector.
61func (b Bits) Set(slot uint32) {
62 b.bits[slot>>6] |= (1 << (slot & 0x3f))
63}
64
65// Shorten may be called to shorten the length of an allocated vector.
66// This is useful when you know that a vector has a limit but you're not

Callers 1

PickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected