BitArray is a thread-safe implementation of a bit array.
| 17 | |
| 18 | // BitArray is a thread-safe implementation of a bit array. |
| 19 | type BitArray struct { |
| 20 | mtx sync.Mutex |
| 21 | Bits int `json:"bits"` // NOTE: persisted via reflect, must be exported |
| 22 | Elems []uint64 `json:"elems"` // NOTE: persisted via reflect, must be exported |
| 23 | } |
| 24 | |
| 25 | // NewBitArray returns a new bit array. |
| 26 | // It returns nil if the number of bits is zero. |
nothing calls this directly
no outgoing calls
no test coverage detected