properties

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PropertiesCommand = &cli.Command{
	Name:  "property",
	Usage: "commands around interacting with properties within a ply file",
	Subcommands: []*cli.Command{
		removePropertiesCommand,
		addPropertiesCommand,
		analyzePropertiesCommand,
	},
}

Functions

func InSlice added in v0.17.0

func InSlice[T comparable](a T, list []T) bool

func PropertiesToAddFromArguments

func PropertiesToAddFromArguments(args []string) []ply.Property

Types

type Analyzer added in v0.17.0

type Analyzer interface {
	Analyze(buf []byte, endian binary.ByteOrder)
	Print(out io.Writer, printHistogram bool)
}

type Blocks

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

type Number added in v0.19.0

type Number interface {
	int64 | float64 | int8 | byte | int16 | uint16 | int32 | uint32 | float32
}

type PropertyAnalyzer added in v0.17.0

type PropertyAnalyzer[T Number] struct {
	Name   string
	Offset int
	End    int
	Min    T
	Max    T
	Counts map[T]int
}

func (*PropertyAnalyzer[T]) Analyze added in v0.17.0

func (pa *PropertyAnalyzer[T]) Analyze(buf []byte, endian binary.ByteOrder)

func (*PropertyAnalyzer[T]) Print added in v0.17.0

func (pa *PropertyAnalyzer[T]) Print(out io.Writer, printHistogram bool)

type SortByHistogramKey added in v0.19.0

type SortByHistogramKey[T Number] []histogramEntry[T]

func (SortByHistogramKey[T]) Len added in v0.19.0

func (a SortByHistogramKey[T]) Len() int

func (SortByHistogramKey[T]) Less added in v0.19.0

func (a SortByHistogramKey[T]) Less(i, j int) bool

func (SortByHistogramKey[T]) Swap added in v0.19.0

func (a SortByHistogramKey[T]) Swap(i, j int)

Jump to

Keyboard shortcuts

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