Documentation
¶
Index ¶
- Constants
- type IndexEntry
- type JagexStore
- func (s *JagexStore) ArchiveExists(archiveID uint8) bool
- func (s *JagexStore) ArchiveList() ([]uint8, error)
- func (s *JagexStore) Close() error
- func (s *JagexStore) GroupExists(archiveID uint8, groupID uint32) bool
- func (s *JagexStore) GroupList(archiveID uint8) ([]uint32, error)
- func (s *JagexStore) IndexEntry(archiveID uint8, groupID uint32) (*IndexEntry, error)
- func (s *JagexStore) Read(archiveID uint8, groupID uint32) ([]byte, error)
Constants ¶
View Source
const ( DataFileName = "main_file_cache.dat2" IndexFilePrefix = "main_file_cache.idx" MaxIndexFiles = 256 IndexEntrySize = 6 BlockHeaderSize = 8 ExtendedBlockHeaderSize = 10 BlockDataSize = 512 ExtendedBlockDataSize = 510 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexEntry ¶
type JagexStore ¶
type JagexStore struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(path string) (*JagexStore, error)
func (*JagexStore) ArchiveExists ¶
func (s *JagexStore) ArchiveExists(archiveID uint8) bool
func (*JagexStore) ArchiveList ¶
func (s *JagexStore) ArchiveList() ([]uint8, error)
func (*JagexStore) Close ¶
func (s *JagexStore) Close() error
func (*JagexStore) GroupExists ¶
func (s *JagexStore) GroupExists(archiveID uint8, groupID uint32) bool
func (*JagexStore) IndexEntry ¶
func (s *JagexStore) IndexEntry(archiveID uint8, groupID uint32) (*IndexEntry, error)
Click to show internal directories.
Click to hide internal directories.