Documentation ¶
Index ¶
- Constants
- type REZEntryDirHeader
- type REZEntryDirInfo
- type REZEntryFileInfo
- type REZEntryRezHeader
- type REZFile
- func (rf *REZFile) Close() error
- func (rf *REZFile) Dirs() []*REZEntryDirInfo
- func (rf *REZFile) Extract(outputDir string) (count int, errors []error)
- func (rf *REZFile) ExtractFile(fileInfo *REZEntryFileInfo, destFile string) error
- func (rf *REZFile) Filename() string
- func (rf *REZFile) Files() []*REZEntryFileInfo
- func (rf *REZFile) Header() *REZMainHeader
- func (rf *REZFile) Open() error
- func (rf *REZFile) Read() (err error)
- func (rf *REZFile) Size() int64
- type REZMainHeader
Constants ¶
View Source
const REZEntryDirHeaderSize = int64(unsafe.Sizeof(REZEntryDirHeader{})) // 12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REZEntryDirHeader ¶
type REZEntryDirInfo ¶
type REZEntryDirInfo struct { REZEntryDirHeader DirName string DirFullName string // RootDir + DirName + Backslash DataSize int64 }
type REZEntryFileInfo ¶
type REZEntryFileInfo struct { REZEntryRezHeader FileName string FileExt string FileFullName string // RootDir + FileName + Extension DataSize int64 }
type REZEntryRezHeader ¶
type REZFile ¶
type REZFile struct {
// contains filtered or unexported fields
}
func NewREZFile ¶
func (*REZFile) Dirs ¶
func (rf *REZFile) Dirs() []*REZEntryDirInfo
func (*REZFile) ExtractFile ¶
func (rf *REZFile) ExtractFile(fileInfo *REZEntryFileInfo, destFile string) error
func (*REZFile) Files ¶
func (rf *REZFile) Files() []*REZEntryFileInfo
func (*REZFile) Header ¶
func (rf *REZFile) Header() *REZMainHeader
type REZMainHeader ¶
type REZMainHeader struct { Sign [127]byte // Sign FileFormatVersion uint32 // File format version RootDirPos uint32 // Position of the root directory structure in the file RootDirSize uint32 // Size of root directory RootDirTime uint32 // Time Root dir was last updated NextWritePos uint32 // Position of first directory in the file Time uint32 // Time resource file was last updated LargestKeyAry uint32 // Size of the largest key array in the resource file LargestDirNameSize uint32 // Size of the largest directory name in the resource file (including 0 terminator) LargestRezNameSize uint32 // Size of the largest resource name in the resource file (including 0 terminator) LargestCommentSize uint32 // Size of the largest comment in the resource file (including 0 terminator) IsSorted byte // If 0 then data is not sorted if 1 then it is sorted }
Taken from rezmgr.cpp
Click to show internal directories.
Click to hide internal directories.