Total data length.
Current read position.
Remaining bytes after current position.
Read a Solana COption — 4-byte discriminator (0 = None, 1 = Some) followed by the inner value.
Important: The reader function is ALWAYS called to advance the offset past the fixed-size data region (C ABI: data is always present, only the tag indicates validity).
The inner value or null if tag is 0 (None).
Read a 32-byte Solana public key and return as branded Pubkey.
Zero-allocation binary reader for Solana account data.
Reads little-endian integers, pubkeys, booleans, and COption fields from a Uint8Array with automatic offset tracking. All reads advance the internal cursor.
Since
1.1.0