Expand description
Builder for nested field access locators.
Locators encode a path to a nested field (sfields and array indices) in a compact
binary format understood by the host. Use it to access fields like Memos[0].MemoType.
Example
use xrpl_wasm_stdlib::core::locator::Locator;
use xrpl_wasm_stdlib::sfield;
let mut l = Locator::new();
l.pack(sfield::Memos);
l.pack(0);
l.pack(sfield::MemoType);Structsยง
- Locator
- A Locator allows a WASM developer located any field in any object (even nested fields) by
specifying a
slot_num(1 byte); alocator_field_type(1 byte); then one of ansfield(4 bytes) or anindex(4 bytes).