fastnode

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func DeserializeNode

func DeserializeNode(key []byte, buf []byte) (*Node, error)

DeserializeNode constructs an *FastNode from an encoded byte slice. It assumes we do not mutate this input []byte.

func NewNode

func NewNode(key []byte, value []byte, version int64) *Node

NewNode returns a new fast node from a value and version.

func (*Node) EncodedSize

func (fn *Node) EncodedSize() int

func (*Node) GetKey

func (fn *Node) GetKey() []byte

func (*Node) GetValue

func (fn *Node) GetValue() []byte

func (*Node) GetVersionLastUpdatedAt

func (fn *Node) GetVersionLastUpdatedAt() int64

func (*Node) WriteBytes

func (fn *Node) WriteBytes(w io.Writer) error

WriteBytes writes the FastNode as a serialized byte slice to the supplied io.Writer.

Jump to

Keyboard shortcuts

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