MCPcopy
hub / github.com/RoaringBitmap/roaring / clone

Method clone

arraycontainer.go:993–997  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

991}
992
993func (ac *arrayContainer) clone() container {
994 ptr := arrayContainer{make([]uint16, len(ac.content))}
995 copy(ptr.content, ac.content[:])
996 return &ptr
997}
998
999func (ac *arrayContainer) contains(x uint16) bool {
1000 return binarySearch(ac.content, x) >= 0

Callers 3

notMethod · 0.95
notCloseMethod · 0.95
andMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected