fifo

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxNodeLength = 508
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FIFO

type FIFO []byte

func (FIFO) Dequeue

func (fifo FIFO) Dequeue(medium Medium, txnIDCeiling int) (
	pointer int, e error,
)

func (FIFO) Enqueue

func (fifo FIFO) Enqueue(medium Medium, txnID int, pointers []int)

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
	Free(int, int)
}

Jump to

Keyboard shortcuts

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