util

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllGidlFiles

func AllGidlFiles() []config.GidlFile

func Fields

func Fields(start, end int, fieldPrefix string, values ValueGenerator) string

func List

func List(n int, values ValueGenerator) string

Generates a string containing a sequence of the specified size. 0x01, 0x02, ...

func ListNoComments

func ListNoComments(n int, values ValueGenerator) string

Generates a string containing a sequence of a specified size that has no section breaks or comments.

func Register

func Register(gf config.GidlFile)

func RepeatHandleDef

func RepeatHandleDef(hd config.HandleDef, n int) []config.HandleDef

Types

type ValueGenerator

type ValueGenerator interface {
	// contains filtered or unexported methods
}

func RandomValues

func RandomValues(typ types.FidlType) ValueGenerator

func SequentialHexValues

func SequentialHexValues(typ types.FidlType, start int) ValueGenerator

func SequentialValues

func SequentialValues(typ types.FidlType, start int) ValueGenerator

Jump to

Keyboard shortcuts

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