pub fn marshal_exact(node: &Node) -> Result<Vec<u8>>Expand description
Serialize a Node using a two-pass strategy:
- compute exact encoded size
- write directly into a fixed-size output buffer
This avoids output buffer growth/copies and can be beneficial for large/variable payloads.