jagex

package
v0.0.0-...-f83daf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 IndexEntry struct {
	Size  uint32
	Block uint32
}

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) GroupList

func (s *JagexStore) GroupList(archiveID uint8) ([]uint32, error)

func (*JagexStore) IndexEntry

func (s *JagexStore) IndexEntry(archiveID uint8, groupID uint32) (*IndexEntry, error)

func (*JagexStore) Read

func (s *JagexStore) Read(archiveID uint8, groupID uint32) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL