lumps

package
v0.0.0-...-1d919a4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveEntry

type ArchiveEntry interface {
	// returns a Reader that represents the raw (and, if applicable,
	// decompressed) contents of the entry
	Open() (io.Reader, error)
	// returns the name/path
	Name() string
	// returns the uncompressed file size
	Size() int
	// prints a description of the entry to os.Stdout
	Print()
	// proposes a file type and destination folder for dumping
	GuessFileTypeAndSubdir() (string, string)
}

type ArchiveIterator

type ArchiveIterator interface {
	// returns the next entry in the archive's directory
	Next() ArchiveEntry
}

type ArchiveReader

type ArchiveReader interface {
	// return an iterator to all entries in the archive
	List() ArchiveIterator
	// returns game type
	Type() string
	// returns an entry of the given name or path
	GetEntry(name string) (ArchiveEntry, error)
}

Jump to

Keyboard shortcuts

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