Unexport roaring.NewSliceContainers

This commit is contained in:
Cody Soyland 2018-07-05 22:02:39 -05:00
parent 67cfe4dcee
commit 5ec9d3af22
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ type SliceContainers struct {
lastContainer *Container
}
func NewSliceContainers() *SliceContainers {
func newSliceContainers() *SliceContainers {
return &SliceContainers{}
}
@ -102,7 +102,7 @@ func (sc *SliceContainers) GetOrCreate(key uint64) *Container {
}
func (sc *SliceContainers) Clone() Containers {
other := NewSliceContainers()
other := newSliceContainers()
other.keys = make([]uint64, len(sc.keys))
other.containers = make([]*Container, len(sc.containers))
copy(other.keys, sc.keys)

View file

@ -117,7 +117,7 @@ type Bitmap struct {
// NewBitmap returns a Bitmap with an initial set of values.
func NewBitmap(a ...uint64) *Bitmap {
b := &Bitmap{
Containers: NewSliceContainers(),
Containers: newSliceContainers(),
}
b.Add(a...)
return b