Documentation ¶
Index ¶
- Constants
- type PKZFile
- type PackedFile
- type PakFile
- func (pak *PakFile) AddFile(f string) error
- func (pak *PakFile) Close()
- func (pak *PakFile) Delete() error
- func (pak *PakFile) ParseFileData() error
- func (pak *PakFile) ParseFileIndex() error
- func (pak *PakFile) RemoveFile(f string) error
- func (pak *PakFile) Validate() bool
- func (pak *PakFile) Write() error
- type PakFileIndex
Constants ¶
View Source
const ( Magic = (('K' << 24) + ('C' << 16) + ('A' << 8) + 'P') HeaderLength = 12 FileBlockLength = 64 // name + offset + length FileNameLength = 56 FileOffset = 56 FileLength = 60 Separator = "/" // always use linux-style, even on windows )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PKZFile ¶
func NewPKZFile ¶
func OpenPKZFile ¶
type PackedFile ¶
a file contained inside a pak file
type PakFile ¶
type PakFile struct { Filename string Handle *os.File Size uint64 Header m.MessageBuffer Index PakFileIndex Files []PackedFile }
A .pak archive
func OpenPakFile ¶
func (*PakFile) ParseFileData ¶
func (*PakFile) ParseFileIndex ¶
the end of a pak file contains an index to all the files contained
func (*PakFile) RemoveFile ¶
type PakFileIndex ¶
Click to show internal directories.
Click to hide internal directories.