Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { // A 32bit CRC of the file's data. CRC uint32 // The number of bytes contained in the index file. PreloadBytes uint16 // A zero based index of the archive this file's data is contained in. // If 0x7fff, the data follows the directory. ArchiveIndex uint16 // If ArchiveIndex is 0x7fff, the offset of the file data relative to the end of the directory (see the header for more details). // Otherwise, the offset of the data from the start of the specified archive. EntryOffset uint32 // If zero, the entire file is stored in the preload data. // Otherwise, the number of bytes stored starting at EntryOffset. EntryLength uint32 // contains filtered or unexported fields }
func (*Entry) FilenameSafeUnix ¶
func (*Entry) FilenameSafeWindows ¶
type EntryReader ¶
type EntryReader struct {
// contains filtered or unexported fields
}
func (*EntryReader) Close ¶
func (e *EntryReader) Close() error
type VPK ¶
type VPK struct { // The size, in bytes, of the directory tree TreeSize int32 // How many bytes of file content are stored in this VPK file (0 in CSGO) FileDataSectionSize int32 // The size, in bytes, of the section containing MD5 checksums for external archive content ArchiveMD5SectionSize int32 // The size, in bytes, of the section containing MD5 checksums for content in this file (should always be 48) OtherMD5SectionSize int32 // The size, in bytes, of the section containing the public key and signature. This is either 0 (CSGO & The Ship) or 296 (HL2, HL2:DM, HL2:EP1, HL2:EP2, HL2:LC, TF2, DOD:S & CS:S) SignatureSectionSize int32 Entries []*Entry PathMap map[string]*Entry // contains filtered or unexported fields }
func OpenStream ¶
func OpenStream(fs FileReader) (*VPK, error)
Click to show internal directories.
Click to hide internal directories.