Skip to main content

encode_canonical

Function encode_canonical 

Source
pub fn encode_canonical(bytes: &[u8; 16], buf: &mut [u8; 36])
Expand description

Write a UUID’s canonical 36-byte text into a caller buffer (no allocation) — the alloc-free hot path for Display and for BULK formatting (fill one big buffer, zero per-id allocations). Uses an SSSE3 pshufb nibble→hex encode when available, else the byte-pair table.