common

package
v0.1.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PageSize = 4096
	LineSize = 64
	WordSize = 8
	HalfSize = 4
)

Variables

View Source
var (
	ErrorCorrupt  = errors.New("voidDB: encountered a page of unexpected type")
	ErrorDeleted  = errors.New("voidDB: record deleted no longer accessible")
	ErrorFull     = errors.New("voidDB: write would exceed scope of memory map")
	ErrorInvalid  = errors.New("voidDB: database file format not recognised")
	ErrorNotFound = errors.New("voidDB: record not found by key or cursor")
	ErrorResized  = errors.New("voidDB: database file larger than memory map")
)

Functions

func Field

func Field(slice []byte, offset, length int) []byte

func GetInt

func GetInt(slice []byte) int

func PutInt

func PutInt(slice []byte, i int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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