Parsing and Serialization
Text input
Both methods auto-detect iKv1 and iKv2. parse reads an in-memory string; load reads a text file.
Binary input
The parsed tree owns or copies all data required after the call returns. The caller may release its source buffer.
Text output
Binary output
Refresh
Refresh replaces an existing root in place from a text or binary path. Format detection is automatic.
Rules:
- Only a mutable root handle can be refreshed.
- A failed refresh preserves the existing tree.
- Reacquire child handles after refresh.
- Other root copies continue sharing the refreshed tree.
Version selection
Version arguments affect output only. Input functions detect the version from text tags or binary headers.