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

Method Copy

libs/bits/bit_array.go:84–91  ·  view source on GitHub ↗

Copy returns a copy of the provided bit array.

()

Source from the content-addressed store, hash-verified

82
83// Copy returns a copy of the provided bit array.
84func (bA *BitArray) Copy() *BitArray {
85 if bA == nil {
86 return nil
87 }
88 bA.mtx.Lock()
89 defer bA.mtx.Unlock()
90 return bA.copy()
91}
92
93func (bA *BitArray) copy() *BitArray {
94 c := make([]uint64, len(bA.Elems))

Callers 1

OrMethod · 0.95

Calls 3

copyMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected