allocator

package
v10.138.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator interface {

	// Allocate allocates a string
	Allocate() string

	// Release releases a string
	Release(item string)

	// AllocateInt allocates an int
	AllocateInt() int

	// ReleaseInt releases an item of type integer.
	ReleaseInt(item int)
}

Allocator is an allocator interface

func New

func New(start, size int) Allocator

New provides a new allocator

Jump to

Keyboard shortcuts

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