jag

package
v0.0.0-...-b6f29c3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	//FileCount How many files this JAG archive contains
	FileCount int
	//MetaData The meta data for each file.  4-byte int nameHash, 3-byte decompLen, 3-byte compLen
	MetaData []byte
	//FileData The raw, consecutive file data.
	FileData []byte
	Files    []Entry
}

Archive Represents a JAG archive, which is a bzip2 compressed file format to hold many files in one more easily.

func New

func New(file string) *Archive

New Returns a new JAG archive, with the entry count, file metadata, and file data parsed to make reading the data much simpler.

type Entry

type Entry struct {
	Data             []byte
	CompressedLength int
	Length           int
	Index            int
	Hash             int
}

Jump to

Keyboard shortcuts

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