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

Method iaddReturnMinimized

roaringarray.go:37–37  ·  view source on GitHub ↗

inplace, returns true if x was new.

(uint16)

Source from the content-addressed store, hash-verified

35
36 iadd(x uint16) bool // inplace, returns true if x was new.
37 iaddReturnMinimized(uint16) container // may change return type to minimize storage.
38
39 iaddRange(start, endx int) container // i stands for inplace, range is [firstOfRange,endx)
40

Callers 9

AddMethod · 0.65
addwithptrMethod · 0.65
CheckedAddMethod · 0.65
AddManyMethod · 0.65
TestRle16Rank020Function · 0.65
TestArrayContainerRankFunction · 0.65
TestArrayOffsetFunction · 0.65

Implementers 3

bitmapContainerbitmapcontainer.go
runContainer16runcontainer.go
arrayContainerarraycontainer.go

Calls

no outgoing calls

Tested by 5

TestRle16Rank020Function · 0.52
TestArrayContainerRankFunction · 0.52
TestArrayOffsetFunction · 0.52