zosft

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 Index1

type Index1 struct {
	Id     uint16
	Field2 uint32
	Count1 uint32
	Count2 uint32
	Count3 uint32

	UncompressedBlock1Size uint32
	CompressedBlock1Size   uint32
	Block1Records          []*Index1Block1Record

	UncompressedBlock2Size uint32
	CompressedBlock2Size   uint32
	Block2Records          []*Index1Block2Record

	UncompressedBlock3Size uint32
	CompressedBlock3Size   uint32
	Block3Records          []*Index1Block3Record
}

type Index1Block1Record

type Index1Block1Record struct {
	Index11 uint32
	Flag    uint8
}

type Index1Block2Record

type Index1Block2Record struct {
	Field1 []byte
}

type Index1Block3Record

type Index1Block3Record struct {
	Id uint32
}

type Index2

type Index2 struct {
	Id     uint16
	Field2 uint32
	Count1 uint32
	Count2 uint32
	Count3 uint32

	UncompressedBlock1Size uint32
	CompressedBlock1Size   uint32
	Block1Records          []*Index2Block1Record

	UncompressedBlock2Size uint32
	CompressedBlock2Size   uint32
	Block2Records          []*Index2Block2Record

	UncompressedBlock3Size uint32
	CompressedBlock3Size   uint32
	Block3Records          []*Index2Block3Record
}

type Index2Block1Record

type Index2Block1Record struct {
	Index21 uint32
	Flag    uint8
}

type Index2Block2Record

type Index2Block2Record struct {
	Id uint32
}

type Index2Block3Record

type Index2Block3Record struct {
	Id     uint32
	Offset uint32
	Field3 []byte
}

type Index3

type Index3 struct {
	Id     uint16
	Field2 uint32
	Count1 uint32
	Count2 uint32
	Count3 uint32

	UncompressedBlock1Size uint32
	CompressedBlock1Size   uint32
	Block1Records          []*Index3Block1Record

	UncompressedBlock2Size uint32
	CompressedBlock2Size   uint32
	Block2Records          []*Index3Block2Record

	UncompressedBlock3Size uint32
	CompressedBlock3Size   uint32
	Block3Records          []*Index3Block3Record
}

type Index3Block1Record

type Index3Block1Record struct {
	Field1 uint32
	Flag   uint8
}

type Index3Block2Record

type Index3Block2Record struct {
	Field1 []byte
}

type Index3Block3Record

type Index3Block3Record struct {
	Field1 []byte
}

type Zosft

type Zosft struct {
	Signature string
	Field2    []byte
	Count     uint32

	Index1 *Index1
	Index2 *Index2
	Index3 *Index3

	DataSize uint32

	OffsetFileName map[uint32]string
}

func Parse

func Parse(r io.Reader) (*Zosft, error)

func (*Zosft) GetFileNamesById

func (zosftData *Zosft) GetFileNamesById() map[uint32]string

Jump to

Keyboard shortcuts

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