freelist

package
v0.0.0-...-a414206 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FREE_LIST_CAP = (btree.BTREE_PAGE_SIZE - FREE_LIST_HEADER) / 8
View Source
const FREE_LIST_HEADER = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type FreeList

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

func (*FreeList) PopHead

func (fl *FreeList) PopHead() uint64

get 1 item form list head

func (*FreeList) PushTail

func (fl *FreeList) PushTail(ptr uint64)

func (*FreeList) SetMaxVer

func (fl *FreeList) SetMaxVer(maxVer uint64)

makin newly added items available for consumption

type LNode

type LNode []byte

node format: |next| pointers | unused

Jump to

Keyboard shortcuts

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