Zero-allocation binary writer for instruction data.
Little-endian, offset-tracking — the write-side counterpart of AccountReader from the decoders module.
decoders
1.1.0
Exact byte length of the instruction data buffer.
Current write position.
Write a signed 64-bit integer (little-endian).
Write a 32-byte public key from base58 into the buffer.
Note: For instruction data that embeds raw pubkeys (rare — most programs reference accounts via the keys array). Uses the SDK's built-in base58 decoder.
keys
Write raw bytes.
Return the completed instruction data buffer.
Write an unsigned 16-bit integer (little-endian).
Write an unsigned 32-bit integer (little-endian).
Write an unsigned 64-bit integer (little-endian).
Write an unsigned 8-bit integer.
Zero-allocation binary writer for instruction data.
Little-endian, offset-tracking — the write-side counterpart of AccountReader from the
decodersmodule.Since
1.1.0