partitionfs

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PFS0HeaderLength      = 0x0C
	PFSfileEntryTableSize = 0x18
	HFSfileEntryTableSize = 0x40
	PFSStaticHeaderLength = 0x10 // Length up until the dynamic content
	PFS0Magic             = "PFS0"
	HFS0Magic             = "HFS0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileEntryTableItem

type FileEntryTableItem struct {
	StartOffset uint64
	Size        uint64
	Name        string
}

type PartionFS

type PartionFS struct {
	Size           int
	HeaderLen      int // Length of the entire header up until file contents start
	FileEntryTable []FileEntryTableItem
}

PartionFS struct is the parsed representation of the file header PFS0/HFS0 section

func ReadSection

func ReadSection(reader io.ReaderAt, offset int64) (*PartionFS, error)

func (*PartionFS) GetByName

func (partition *PartionFS) GetByName(id string) *FileEntryTableItem

Jump to

Keyboard shortcuts

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