pointslicepool

package
v1.0.1-0...-6d15fe1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PointSlicePool

type PointSlicePool struct {
	// contains filtered or unexported fields
}

func New

func New(defaultSize int) *PointSlicePool

func (*PointSlicePool) Get

func (p *PointSlicePool) Get() []schema.Point

func (*PointSlicePool) GetMin

func (p *PointSlicePool) GetMin(minCap int) []schema.Point

GetMin returns a pointslice that has at least minCap capacity

func (*PointSlicePool) Put

func (p *PointSlicePool) Put(s []schema.Point)

func (*PointSlicePool) PutMaybeNil

func (p *PointSlicePool) PutMaybeNil(s []schema.Point)

func (*PointSlicePool) SetDefaultSize

func (p *PointSlicePool) SetDefaultSize(size int)

SetDefaultSize - Change the default size for the point slice pool. This function is not thread-safe and should only be called when pool is not being actively used.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL