Expand description
Alignment-1 little-endian ABI wire types.
All types are #[repr(transparent)] over [u8; N] with align_of == 1.
This guarantees safe zero-copy overlay from any byte boundary in Solana
account data without alignment padding.
Unlike raw integer types (which have alignment requirements matching their
size), these wire types can be placed at any offset in a #[repr(C)] struct
and will never introduce padding bytes.
Structs§
- Authority
- Marker: an authority/signer address.
- Field
Mut - Mutable typed view over a field’s bytes.
- Field
Ref - Immutable typed view over a field’s bytes.
- Fingerprint
Transition - Pair of fingerprints for asserting version transitions.
- Layout
Fingerprint - An 8-byte deterministic layout fingerprint.
- Mint
- Marker: a mint address.
- Program
- Marker: a program address (executable).
- Token
Account - Marker: a token account address.
- Typed
Address - A 32-byte public key tagged with a phantom layout type.
- Untyped
Address - An untyped 32-byte address (interop bridge).
- Wire
Bool - Boolean wire type stored as a single byte.
- WireI16
- 16-bit signed little-endian wire integer.
- WireI32
- 32-bit signed little-endian wire integer.
- WireI64
- 64-bit signed little-endian wire integer.
- Wire
I128 - 128-bit signed little-endian wire integer.
- WireU16
- 16-bit unsigned little-endian wire integer.
- WireU32
- 32-bit unsigned little-endian wire integer.
- WireU64
- 64-bit unsigned little-endian wire integer.
- Wire
U128 - 128-bit unsigned little-endian wire integer.
Traits§
- Wire
Type - Marker trait for types safe to use as zero-copy wire fields.
Type Aliases§
- Token
- Alias for
TokenAccount.