Skip to main content

encode_label

Function encode_label 

Source
pub fn encode_label(label: &str) -> [u8; 16]
Expand description

Zero-padded UTF-8, capped at 15 bytes (the last byte stays NUL so the C side can treat the field as NUL-terminated).