pool

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LazyReusePool

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

func NewLazyReusePool

func NewLazyReusePool(first, last int) (*LazyReusePool, error)

NewLazyReusePool makes a LazyReusePool.

func (*LazyReusePool) Allocate

func (p *LazyReusePool) Allocate() (res int, ok bool)

func (*LazyReusePool) Contains

func (p *LazyReusePool) Contains(first, last int) bool

func (*LazyReusePool) Dump

func (p *LazyReusePool) Dump() [][]int

func (*LazyReusePool) Free

func (p *LazyReusePool) Free(value int) bool

func (*LazyReusePool) GetHead

func (p *LazyReusePool) GetHead() *segment

func (*LazyReusePool) IsJoint

func (p1 *LazyReusePool) IsJoint(p2 *LazyReusePool) bool

func (*LazyReusePool) Max

func (p *LazyReusePool) Max() int

func (*LazyReusePool) Min

func (p *LazyReusePool) Min() int

func (*LazyReusePool) Remain

func (p *LazyReusePool) Remain() int

func (*LazyReusePool) Reserve

func (p *LazyReusePool) Reserve(first, last int) error

func (*LazyReusePool) Total

func (p *LazyReusePool) Total() int

func (*LazyReusePool) Use

func (p *LazyReusePool) Use(value int) bool

Jump to

Keyboard shortcuts

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