Expand description
Advanced layout and header surface.
Structs§
- Account
Header - The 16-byte account header, overlay-safe.
- Account
Reader - Header-aware read-only account reader.
- Field
Info - Descriptor for one field in a Hopper layout.
- Fingerprint
Transition - Pair of fingerprints for asserting version transitions.
- Hopper
Header - The canonical 16-byte header at the start of every Hopper account.
- Layout
Fingerprint - An 8-byte deterministic layout fingerprint.
- Layout
Info - Runtime metadata snapshot of an account’s layout identity.
Constants§
- HEADER_
FORMAT - Header format version. Bump only if the header wire format itself changes.
- HEADER_
LEN - Header length in bytes.
Traits§
- Account
Layout - Hopper account layout identity, the top of the unified trait stack.
- Field
Map - Trait for layouts that expose field metadata in wire order.
- Fixed
Layout - Trait for types with a compile-time known wire size.
- Layout
Contract - A compile-time layout contract binding type identity to wire format.
- Pod
- Marker for types that can be safely overlaid on raw account bytes.
- Wire
Layout - A
ZeroCopytype with a compile-time-known wire size. - Wire
Type - Marker trait for types safe to use as zero-copy wire fields.
- Zero
Copy - Canonical marker for types that may be overlaid on raw bytes.
Functions§
- check_
header - Validate the header against expected values.
- init_
header - Initialize an account’s header from a layout contract type.
- read_
discriminator - Read the discriminator byte from raw account data.
- read_
header_ flags - Read the flags field as
u16. - read_
layout_ id - Read the 8-byte layout_id.
- read_
version - Read the version byte.
- write_
header - Write a complete header to the beginning of
data.