slots
๐ค 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.slots
¶
Classes¶
SlotDescriptor
¶
Slot descriptor - exactly 64 bytes to match specification.
Functions¶
__attrs_post_init__
¶
pack
¶
Pack descriptor into exactly 64-byte binary format matching Rust spec.
Source code in flavor/psp/format_2025/slots.py
to_dict
¶
Convert to dictionary for JSON serialization.
Source code in flavor/psp/format_2025/slots.py
unpack
classmethod
¶
Unpack descriptor from 64-byte binary data matching Rust spec.
Source code in flavor/psp/format_2025/slots.py
SlotMetadata
¶
Metadata for a slot in the PSPF package.
Functions¶
from_dict
classmethod
¶
Create from dictionary.
Source code in flavor/psp/format_2025/slots.py
get_purpose_value
¶
Get the numeric purpose value for binary encoding.
Source code in flavor/psp/format_2025/slots.py
to_descriptor
¶
Convert metadata to descriptor.
Source code in flavor/psp/format_2025/slots.py
to_dict
¶
Convert to dictionary for JSON serialization.
Source code in flavor/psp/format_2025/slots.py
SlotView
¶
Lazy view into a slot - doesn't load data until accessed.
Source code in flavor/psp/format_2025/slots.py
Attributes¶
Functions¶
__getitem__
¶
__len__
¶
compute_checksum
¶
Compute SHA-256 checksum of data (first 8 bytes as uint64).
stream
¶
Stream slot data in chunks.
Source code in flavor/psp/format_2025/slots.py
Functions¶
normalize_purpose
¶
Validate purpose field is spec-compliant.
Source code in flavor/psp/format_2025/slots.py
validate_operations_string
¶
Validate that operations string is valid.