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

Function newArrayContainerRange

arraycontainer.go:1238–1245  ·  view source on GitHub ↗
(firstOfRun, lastOfRun int)

Source from the content-addressed store, hash-verified

1236}
1237
1238func newArrayContainerRange(firstOfRun, lastOfRun int) *arrayContainer {
1239 valuesInRange := lastOfRun - firstOfRun + 1
1240 this := newArrayContainerCapacity(valuesInRange)
1241 for i := 0; i < valuesInRange; i++ {
1242 this.content = append(this.content, uint16(firstOfRun+i))
1243 }
1244 return this
1245}
1246
1247func (ac *arrayContainer) numberOfRuns() (nr int) {
1248 n := len(ac.content)

Callers 4

TestRunArrayUnionToRunsFunction · 0.85
TestRlePanics16Function · 0.85

Calls 1

Tested by 4

TestRunArrayUnionToRunsFunction · 0.68
TestRlePanics16Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…