memory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllocator

func GetAllocator() memory.Allocator

GetAllocator is a public function to retrieve an allocator from the pool

func NewAllocator

func NewAllocator() memory.Allocator

NewAllocator returns the default allocator, which in this case is also a GoAllocator

func NewGoAllocator

func NewGoAllocator() memory.Allocator

NewGoAllocator creates a new Go allocator without using the pool

func PutAllocator

func PutAllocator(alloc memory.Allocator)

PutAllocator is a public function to return an allocator back to the pool

Types

This section is empty.

Jump to

Keyboard shortcuts

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