fbpk

package module
v0.0.0-...-7027bf5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAGIC_FBPK = "FBPK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FBPK

type FBPK struct {
	sync.Mutex
	// contains filtered or unexported fields
}

0x00 0 | 4 = uint32: magic 0x04 4 | 4 = uint32: version 0x08 8 | 4 = uint32: header size 0x0C 12 | 4 = uint32: entries header size 0x10 16 | 16 = string: platform 0x20 32 | 64 = string: pack version 0x60 96 | 4 = uint32: slot type 0x64 100 | 4 = uint32: data align 0x68 104 | 4 = uint32: total entries 0x6C 108 | 4 = uint32: total size

func OpenFBPK

func OpenFBPK(path string) (*FBPK, error)

func RawFBPK

func RawFBPK(bytes []byte) (*FBPK, error)

func (*FBPK) DataAlignment

func (fbpk *FBPK) DataAlignment() int

func (*FBPK) Entries

func (fbpk *FBPK) Entries() []*FBPKEntry

func (*FBPK) EntryCount

func (fbpk *FBPK) EntryCount() int

func (*FBPK) EntryHeaderSize

func (fbpk *FBPK) EntryHeaderSize() int

func (*FBPK) GetEntry

func (fbpk *FBPK) GetEntry(name string) *FBPKEntry

func (*FBPK) HeaderSize

func (fbpk *FBPK) HeaderSize() int

func (*FBPK) Magic

func (fbpk *FBPK) Magic() string

func (*FBPK) PackVersion

func (fbpk *FBPK) PackVersion() string

func (*FBPK) Platform

func (fbpk *FBPK) Platform() string

func (*FBPK) Size

func (fbpk *FBPK) Size() int64

func (*FBPK) SlotType

func (fbpk *FBPK) SlotType() int

func (*FBPK) Version

func (fbpk *FBPK) Version() int

type FBPKEntry

type FBPKEntry struct {
	// contains filtered or unexported fields
}

0x00 0 | 4 = uint32: type 0x04 4 | 36 = string: name 0x4C 76 | 40 = string: product 0x50 80 | 8 = uint64: start 0x58 88 | 8 = uint64: size 0x60 96 | 4 = uint32: slotted 0x64 100 | 4 = uint32: crc32

func (*FBPKEntry) Bytes

func (e *FBPKEntry) Bytes() []byte

func (*FBPKEntry) CRC32

func (e *FBPKEntry) CRC32() uint32

func (*FBPKEntry) Name

func (e *FBPKEntry) Name() string

func (*FBPKEntry) Size

func (e *FBPKEntry) Size() int64

func (*FBPKEntry) Slotted

func (e *FBPKEntry) Slotted() bool

func (*FBPKEntry) Start

func (e *FBPKEntry) Start() int64

func (*FBPKEntry) Type

func (e *FBPKEntry) Type() int

Directories

Path Synopsis
cmd
fbpk command

Jump to

Keyboard shortcuts

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