MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / NewBitMap

Function NewBitMap

client/bitmap.go:39–46  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

37}
38
39func 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
48func (b *BitMap) Mark(position int) {
49 b.bits[position/8] |= BitUtil[position%8]

Callers 1

SetValueAtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…