Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MinMaxAllocator ¶
type MinMaxAllocator struct {
// contains filtered or unexported fields
}
func NewMinMaxAllocator ¶
func NewMinMaxAllocator(min, max int) (*MinMaxAllocator, error)
func (*MinMaxAllocator) AllocateNext ¶
func (a *MinMaxAllocator) AllocateNext() (int, bool, error)
func (*MinMaxAllocator) Free ¶
func (a *MinMaxAllocator) Free() int
func (*MinMaxAllocator) Has ¶
func (a *MinMaxAllocator) Has(i int) bool
func (*MinMaxAllocator) Release ¶
func (a *MinMaxAllocator) Release(i int) error
func (*MinMaxAllocator) SetRange ¶
func (a *MinMaxAllocator) SetRange(min, max int) error
Click to show internal directories.
Click to hide internal directories.