trireme-lib: go.aporeto.io/trireme-lib/utils/allocator Index | Files

package allocator

import "go.aporeto.io/trireme-lib/utils/allocator"

Index

Package Files

allocator.go interfaces.go

type Allocator Uses

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 Uses

func New(start, size int) Allocator

New provides a new allocator

Package allocator imports 1 packages (graph). Updated 2019-02-20. Refresh now. Tools for package owners.