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

Method realloc

arraycontainer.go:1034–1040  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

1032}
1033
1034func (ac *arrayContainer) realloc(size int) {
1035 if cap(ac.content) < size {
1036 ac.content = make([]uint16, size)
1037 } else {
1038 ac.content = ac.content[:size]
1039 }
1040}
1041
1042// previousValue returns either the target if found or the previous smaller present value.
1043// If the target is out of bounds a -1 is returned.

Callers 2

resetToMethod · 0.95
AndAnyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected