constset

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 0 Imported by: 14

Documentation

Overview

Package constset provides structures for storing large numbers of value-string pairs efficently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	V uint64 // The value
	O int    // The symbol table offset
	L int    // The symbol length
}

Entry is a single value-symbol entry.

type Pack

type Pack struct {
	Symbols Symbols
	Sets    []Set
}

Pack holds the symbols and all constant sets.

type Set

type Set struct {
	IsBitfield bool
	Entries    []Entry
}

Set is a list of entries.

type Symbols

type Symbols string

Symbols holds the symbol names.

func (Symbols) Get

func (s Symbols) Get(e Entry) string

Get returns the symbol for the entry e.

Jump to

Keyboard shortcuts

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