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

Method getIndex

libs/bits/bit_array.go:53–58  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

51}
52
53func (bA *BitArray) getIndex(i int) bool {
54 if i >= bA.Bits {
55 return false
56 }
57 return bA.Elems[i/64]&(uint64(1)<<uint(i%64)) > 0
58}
59
60// SetIndex sets the bit at index i within the bit array.
61// The behavior is undefined if i >= bA.Bits

Callers 3

GetIndexMethod · 0.95
stringIndentedMethod · 0.95
MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected