alloc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocItem

type AllocItem struct {
	Data []byte
	// contains filtered or unexported fields
}

func (*AllocItem) Deallocate

func (a *AllocItem) Deallocate()

type Allocator

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

func NewAllocator

func NewAllocator(bucketSize int, regionSize int, blockSize int) *Allocator

func (*Allocator) Allocate

func (a *Allocator) Allocate(size int) *AllocItem

type BufferItem

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

Jump to

Keyboard shortcuts

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