Appearance
STO APIs
APIs for parsing and manipulating serialized transaction objects (STOs) — locating a field or array element by code, and inserting or removing a field to build a new object. These functions used to share the "Utility APIs" page; for the return-value and error-code conventions they follow, see Utility APIs.
Index
| Function | Purpose |
|---|---|
sto_validate | Check that a buffer is a well-formed serialized object. |
sto_subfield | Locate a field within an STO (returns packed offset+length). |
sto_subarray | Locate an array element within an STO array. |
sto_emplace | Insert or replace a field within an STO. |
sto_erase | Remove a field from an STO. |
Related documents
- Utility APIs — return-value conventions,
util_keylet, and the otherutil_*functions. - Trace APIs — debug tracing helpers.
- Hook API reference index
- Overview and Glossary
- Helper macros —
SUB_OFFSET/SUB_LENGTHfor unpackingsto_subfield/sto_subarrayresults.