cleanup, docs
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
:title
|
||||
ucb_encode
|
||||
|
||||
:sig
|
||||
String ucb_encode(DValue value)
|
||||
|
||||
@@ -14,10 +11,6 @@ Serializes a `DValue` to UCEB1, UCE's binary DValue wire format for the WASM mem
|
||||
|
||||
UCEB1 is length-prefixed and binary-safe. It preserves nested maps, list-shaped maps, empty lists, and scalar bytes, including embedded NUL bytes. Use JSON/YAML/XML serializers for human-facing formats; use UCEB1 when UCE code needs the native DValue protocol.
|
||||
|
||||
```cpp
|
||||
DValue payload;
|
||||
payload["name"] = "uce";
|
||||
payload["items"].push("first");
|
||||
|
||||
String bytes = ucb_encode(payload);
|
||||
```
|
||||
:example
|
||||
print("ucb_encode example\n");
|
||||
|
||||
Reference in New Issue
Block a user