pub fn marshal_ref_exact(node: &NodeRef<'_>) -> Result<Vec<u8>>
Serialize a NodeRef using a two-pass exact-size strategy.
NodeRef
This avoids output buffer growth/copies and preserves zero-copy input semantics.