(size int)
| 37 | } |
| 38 | |
| 39 | func NewBitMap(size int) *BitMap { |
| 40 | // Need to maintain consistency with the calculation method on the IoTDB side. |
| 41 | bitMap := &BitMap{ |
| 42 | size: size, |
| 43 | bits: make([]byte, size/8+1), |
| 44 | } |
| 45 | return bitMap |
| 46 | } |
| 47 | |
| 48 | func (b *BitMap) Mark(position int) { |
| 49 | b.bits[position/8] |= BitUtil[position%8] |
no outgoing calls
no test coverage detected
searching dependent graphs…