BitArray is a thread-safe implementation of a bit array.
| 14 | |
| 15 | // BitArray is a thread-safe implementation of a bit array. |
| 16 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected