Skip to main content

canonicalize_to_bytes

Function canonicalize_to_bytes 

Source
pub fn canonicalize_to_bytes(
    doc: &Document,
    opts: &CanonicalizeOptions,
) -> Vec<u8> 
Expand description

Canonicalize an entire arena Document into an in-memory Vec.

Convenience wrapper around canonicalize_with for callers that want the full canonical form materialized in memory. For streaming workloads (hashing, network I/O) use canonicalize_with directly.