Skip to main content

Module abi

Module abi 

Source
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.
FieldMut
Mutable typed view over a field’s bytes.
FieldRef
Immutable typed view over a field’s bytes.
FingerprintTransition
Pair of fingerprints for asserting version transitions.
LayoutFingerprint
An 8-byte deterministic layout fingerprint.
Mint
Marker: a mint address.
Program
Marker: a program address (executable).
TokenAccount
Marker: a token account address.
TypedAddress
A 32-byte public key tagged with a phantom layout type.
UntypedAddress
An untyped 32-byte address (interop bridge).
WireBool
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.
WireI128
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.
WireU128
128-bit unsigned little-endian wire integer.

Traits§

WireType
Marker trait for types safe to use as zero-copy wire fields.

Type Aliases§

Token
Alias for TokenAccount.