heap

package
v0.0.0-...-6f9c769 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Index uint16
	Shift uint16
	Size  uint32
}

func SmallAllocSize

func SmallAllocSize(size uintptr) Class

func (Class) Search

func (cls Class) Search(bitmap uint32) int

func (Class) Search64

func (cls Class) Search64(bitmap uint64) int

func (Class) Set

func (cls Class) Set(bitmap uint32) uint32

func (Class) Set64

func (cls Class) Set64(bitmap uint64) uint64

func (Class) Unset

func (cls Class) Unset(bitmap uint32) uint32

func (Class) Unset64

func (cls Class) Unset64(bitmap uint64) uint64

type Freelist

type Freelist struct {
}

type Freelist64

type Freelist64 struct {
}

type FreelistSmall16

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

func (*FreelistSmall16) AllocSize

func (fls *FreelistSmall16) AllocSize(size uintptr) Class

Jump to

Keyboard shortcuts

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