allocator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadAlloc = errors.New("bad alloc")

Functions

func Memcpy

func Memcpy(dest, src unsafe.Pointer, n uintptr)

func Memset

func Memset(p unsafe.Pointer, ch uint8, len uintptr)

Types

type Memory

type Memory interface {
	Malloc(size uintptr) *byte
	Free(ptr *byte)
}

type MemoryManager

type MemoryManager interface {
	Allocate(size uintptr) unsafe.Pointer
	DeAllocate(p unsafe.Pointer)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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