containers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

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

type ChunkAllocator

type ChunkAllocator struct {

	//busyHead int32
	Chunks []Chunk
	// contains filtered or unexported fields
}

func NewChunkAllocator

func NewChunkAllocator(capacity int32) *ChunkAllocator

func (*ChunkAllocator) Alloc

func (this *ChunkAllocator) Alloc() int32

func (*ChunkAllocator) AllocEx

func (this *ChunkAllocator) AllocEx() *Chunk

func (*ChunkAllocator) Free

func (this *ChunkAllocator) Free(id int32)

func (*ChunkAllocator) FreeEx

func (this *ChunkAllocator) FreeEx(chunk *Chunk)

func (*ChunkAllocator) GetData

func (this *ChunkAllocator) GetData(id int32) (interface{}, bool)

func (*ChunkAllocator) SetData

func (this *ChunkAllocator) SetData(id int32, data interface{}) bool

Jump to

Keyboard shortcuts

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