extraction
๐ค 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.extraction
¶
PSPF Slot Extraction - Handles slot data extraction and streaming.
Provides extraction, streaming, and verification operations for PSPF slots.
Classes¶
SlotExtractor
¶
Handles PSPF slot extraction operations.
Initialize with reference to PSPFReader.
Source code in flavor/psp/format_2025/extraction.py
Functions¶
extract_slot
¶
Extract a slot to a directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slot_index
|
int
|
Index of slot to extract |
required |
dest_dir
|
Path
|
Destination directory |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to extracted content |
Source code in flavor/psp/format_2025/extraction.py
get_slot_view
¶
Get a lazy view of a slot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slot_index
|
int
|
Index of the slot |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SlotView |
SlotView
|
Lazy view that loads data on demand |
Source code in flavor/psp/format_2025/extraction.py
stream_slot
¶
Stream a slot in chunks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slot_index
|
int
|
Index of the slot to stream |
required |
chunk_size
|
int
|
Size of chunks to yield |
8192
|
Yields:
| Name | Type | Description |
|---|---|---|
bytes |
bytes
|
Chunks of slot data |
Source code in flavor/psp/format_2025/extraction.py
verify_all_checksums
¶
Verify all slot checksums.
Returns:
| Type | Description |
|---|---|
bool
|
True if all checksums are valid |
Source code in flavor/psp/format_2025/extraction.py
verify_slot_integrity
¶
Verify integrity of a specific slot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slot_index
|
int
|
Index of slot to verify |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if slot integrity is valid |