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

Function copyOf

arraycontainer.go:816–825  ·  view source on GitHub ↗
(array []uint16, size int)

Source from the content-addressed store, hash-verified

814}
815
816func copyOf(array []uint16, size int) []uint16 {
817 result := make([]uint16, size)
818 for i, x := range array {
819 if i == size {
820 break
821 }
822 result[i] = x
823 }
824 return result
825}
826
827// flip the values in the range [firstOfRange,endx)
828func (ac *arrayContainer) inot(firstOfRange, endx int) container {

Callers 1

inotCloseMethod · 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…