node

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxKeyLength  = 512
	MaxNodeLength = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Elem

type Elem []byte

type Key

type Key []byte

type Meta

type Meta []byte

type Node

type Node []byte

func NewNode

func NewNode() (node Node)

func (Node) Insert

func (node Node) Insert(
	index, pointerL, pointerR, length int, key, metadata link.Metadata,
) (
	newNode, _ Node, _ []byte,
)

func (Node) IsNode

func (node Node) IsNode() bool

func (Node) Key

func (node Node) Key(index int) []byte

func (Node) Length

func (node Node) Length() int

func (Node) Search

func (node Node) Search(key []byte) (index, pointer, length int)

func (Node) Update

func (node Node) Update(index, pointer, length int, metadata link.Metadata) (
	newNode Node,
)

func (Node) ValueOrChild

func (node Node) ValueOrChild(index int) (pointer, length int)

func (Node) ValueOrChildLinkMetadata added in v0.1.10

func (node Node) ValueOrChildLinkMetadata(index int) (metadata link.Metadata)

Jump to

Keyboard shortcuts

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