prefix

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prefix

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

Prefix is a database prefix that is used to manage more than one database at once.

func Deserialize

func Deserialize(prefixBytes []byte) (*Prefix, error)

Deserialize deserializes a prefix from a byte slice

func (*Prefix) Equal

func (p *Prefix) Equal(other *Prefix) bool

Equal returns whether p equals to other

func (*Prefix) Flip

func (p *Prefix) Flip() *Prefix

Flip returns the opposite of the current prefix

func (*Prefix) Serialize

func (p *Prefix) Serialize() []byte

Serialize serializes the prefix into a byte slice

Jump to

Keyboard shortcuts

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