MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / BitArray

Struct BitArray

libs/bits/bit_array.go:16–20  ·  view source on GitHub ↗

BitArray is a thread-safe implementation of a bit array.

Source from the content-addressed store, hash-verified

14
15// BitArray is a thread-safe implementation of a bit array.
16type BitArray struct {
17 mtx sync.Mutex
18 Bits int `json:"bits"` // NOTE: persisted via reflect, must be exported
19 Elems []uint64 `json:"elems"` // NOTE: persisted via reflect, must be exported
20}
21
22// NewBitArray returns a new bit array.
23// It returns nil if the number of bits is zero.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected