database

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Signature []byte
	Field2    uint32
	Count     uint32
	Version   uint32
	Records   []*Record
}

func ParseDatabase

func ParseDatabase(r io.Reader) (*Database, error)

type Index

type Index struct {
	Signature []byte
	Field2    uint32
	Field3    uint16
	Field4    uint32
	Field5    uint32
	Field6    uint32
	Field7    uint32
	Count     uint32
	Offsets   map[uint32]uint32
}

func ParseIndex

func ParseIndex(r io.Reader) (*Index, error)

type Record

type Record struct {
	UncomressedSize1 uint32
	UncomressedSize2 uint32
	ComressedSize    uint32
	Id               uint32
	NameSize         uint16
	Name             string
	Data             []byte
}

Jump to

Keyboard shortcuts

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