istorage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileTableEntrySize = 0x20
)

Variables

This section is empty.

Functions

func ReadFileEntries

func ReadFileEntries(data []byte, header Header) (map[string]FileEntry, error)

ReadFileEntries Will return all of the Fileentry records contained in the data

Types

type FileEntry

type FileEntry struct {
	Parent    uint32
	Sibling   uint32
	Offset    uint64
	Size      uint64
	Hash      uint32
	Name      string
	Name_size uint32
}
type Header struct {
	HeaderSize          uint64
	DirHashTableOffset  uint64
	DirHashTableSize    uint64
	DirMetaTableOffset  uint64
	DirMetaTableSize    uint64
	FileHashTableOffset uint64
	FileHashTableSize   uint64
	FileMetaTableOffset uint64
	FileMetaTableSize   uint64
	DataOffset          uint64
}

func ReadHeader

func ReadHeader(data []byte) (*Header, error)

ReadHeader will parse the header data section into the header struct

Jump to

Keyboard shortcuts

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