metadata

package
v0.4.7-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	Mapping        map[uint32][]uint32
	ReverseMapping map[uint32]uint32
	// contains filtered or unexported fields
}

type Metadata

type Metadata struct {
	Checksums map[[32]byte]uint32

	Strings map[string]uint32

	Mappings map[uint32]*Mapping
	// contains filtered or unexported fields
}

func New

func New() *Metadata

func NewFromBytes

func NewFromBytes(serialized []byte) (*Metadata, error)

func (*Metadata) AddMetadata

func (md *Metadata) AddMetadata(mdType string, mdKey string, value [32]byte)

md

func (*Metadata) ListKeys

func (md *Metadata) ListKeys(mdType string) []string

func (*Metadata) ListValues

func (md *Metadata) ListValues(mdType string, mdKey string) [][32]byte

func (*Metadata) LookupKeyForValue

func (md *Metadata) LookupKeyForValue(mdType string, value [32]byte) (string, bool)

func (*Metadata) Serialize

func (md *Metadata) Serialize() ([]byte, error)

Jump to

Keyboard shortcuts

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