writer
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.psp.format_2025.writer
¶
PSPF package writer for low-level binary serialization.
Classes¶
Functions¶
write_package
¶
write_package(
spec: BuildSpec,
output_path: Path,
slots: list[PreparedSlot],
index: PSPFIndex,
private_key: bytes,
public_key: bytes,
) -> int
Write the complete package file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spec
|
BuildSpec
|
Build specification |
required |
output_path
|
Path
|
Path where package should be written |
required |
slots
|
list[PreparedSlot]
|
Prepared slot data |
required |
index
|
PSPFIndex
|
Package index (will be updated with offsets/sizes) |
required |
private_key
|
bytes
|
Private key for signing |
required |
public_key
|
bytes
|
Public key for verification |
required |
Returns:
| Type | Description |
|---|---|
int
|
Total package size in bytes |