free

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxNodeLength = 508
)

Variables

This section is empty.

Functions

func Get

func Get(medium Medium, offset, index int) (
	txnID, pointer, nextOffset, nextIndex int, e error,
)

func Put

func Put(medium Medium, offset, txnID int, pointers []int) (head, tail int)

Types

type Free

type Free []byte

func NewFree

func NewFree(txnID int) (free Free)

type Medium

type Medium interface {
	Save([]byte) int
	SaveAt(int, []byte)
	Load(int, int) []byte
}

Jump to

Keyboard shortcuts

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