Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryEntry ¶
type DirectoryRecord ¶
type DirectoryRecord struct {
Offset uint64
Name string
Hash [32]byte
Entries []DirectoryEntry
}
type FileRecord ¶
type GgpkRecord ¶
type Reader ¶
func (*Reader) FileReaderAt ¶
func (r *Reader) FileReaderAt(rec *FileRecord) io.ReaderAt
FileReaderAt returns an io.ReaderAt scoped to the file's data region within the GGPK.
func (*Reader) FindFile ¶
func (r *Reader) FindFile(path string) (*FileRecord, error)
FindFile locates a file by path in the GGPK directory tree. Path components are separated by '/'. Lookup is case-insensitive.
func (*Reader) ListDirectory ¶
ListDirectory returns entries at a given path in the GGPK tree.
func (*Reader) ReadFileData ¶
func (r *Reader) ReadFileData(rec *FileRecord) ([]byte, error)
ReadFileData reads the raw data bytes of a file record.
type RecordHeader ¶
Click to show internal directories.
Click to hide internal directories.