util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(v []byte) *Decoder

func (*Decoder) AssertEOF

func (d *Decoder) AssertEOF()

func (*Decoder) ReadSortedAscending

func (d *Decoder) ReadSortedAscending(n int) []int

func (*Decoder) ReadSortedUnique

func (d *Decoder) ReadSortedUnique() []int

func (*Decoder) ReadString

func (d *Decoder) ReadString() string

func (*Decoder) ReadUnique

func (d *Decoder) ReadUnique() []int

func (*Decoder) ReadUnsigned

func (d *Decoder) ReadUnsigned() int

func (*Decoder) ReadUnsortedDeltas

func (d *Decoder) ReadUnsortedDeltas(n int) []int

type RuneSet

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

func NewRuneSetFromInts

func NewRuneSetFromInts(v []int) RuneSet

func NewRuneSetFromKeys

func NewRuneSetFromKeys[T any](m map[rune]T) RuneSet

func (RuneSet) Contains

func (set RuneSet) Contains(cp rune) bool

func (RuneSet) Filter

func (set RuneSet) Filter(fn func(cp rune) bool) RuneSet

func (RuneSet) Size

func (set RuneSet) Size() int

func (RuneSet) ToArray

func (set RuneSet) ToArray() []rune

Jump to

Keyboard shortcuts

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