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

Method copyBits

libs/bits/bit_array.go:102–109  ·  view source on GitHub ↗
(bits int)

Source from the content-addressed store, hash-verified

100}
101
102func (bA *BitArray) copyBits(bits int) *BitArray {
103 c := make([]uint64, (bits+63)/64)
104 copy(c, bA.Elems)
105 return &BitArray{
106 Bits: bits,
107 Elems: c,
108 }
109}
110
111// Or returns a bit array resulting from a bitwise OR of the two bit arrays.
112// If the two bit-arrys have different lengths, Or right-pads the smaller of the two bit-arrays with zeroes.

Callers 3

OrMethod · 0.95
andMethod · 0.95
SubMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected