extractor

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context added in v0.3.0

type Context interface {
	Ctx() context.Context
	File() *stingray.File
	Runner() *exec.Runner
	Config() appconfig.Config
	GetResource(name, typ stingray.Hash) (file *stingray.File, exists bool)
	// Call WriteCloser.Close() when done.
	CreateFile(suffix string) (io.WriteCloser, error)
	// Returns path to file.
	AllocateFile(suffix string) (string, error)
	Hashes() map[stingray.Hash]string
	ThinHashes() map[stingray.ThinHash]string
	// Selected triad ID, if any (-t option).
	TriadIDs() []stingray.Hash
	ArmorSets() map[stingray.Hash]dlbin.ArmorSet
	// Prints a warning message.
	Warnf(f string, a ...any)
	LookupHash(hash stingray.Hash) string
}

type ExtractFunc

type ExtractFunc func(ctx Context) error

func ExtractFuncRaw added in v0.1.7

func ExtractFuncRaw(extension string) ExtractFunc

func ExtractFuncRawCombined added in v0.5.6

func ExtractFuncRawCombined(extension string) ExtractFunc

func ExtractFuncRawSingleType added in v0.5.6

func ExtractFuncRawSingleType(extension string, typ stingray.DataType) ExtractFunc

Jump to

Keyboard shortcuts

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