Documentation ¶
Index ¶
- type LazyReusePool
- func (p *LazyReusePool) Allocate() (res int, ok bool)
- func (p *LazyReusePool) Contains(first, last int) bool
- func (p *LazyReusePool) Dump() [][]int
- func (p *LazyReusePool) Free(value int) bool
- func (p *LazyReusePool) GetHead() *segment
- func (p1 *LazyReusePool) IsJoint(p2 *LazyReusePool) bool
- func (p *LazyReusePool) Max() int
- func (p *LazyReusePool) Min() int
- func (p *LazyReusePool) Remain() int
- func (p *LazyReusePool) Reserve(first, last int) error
- func (p *LazyReusePool) Total() int
- func (p *LazyReusePool) Use(value int) bool
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
Click to show internal directories.
Click to hide internal directories.