properties

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 12 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)
}

type Blocks

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

type PropertyAnalyzer added in v0.17.0

type PropertyAnalyzer[T comparable] 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)

Jump to

Keyboard shortcuts

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