Skip to main content

hex_encode

Function hex_encode 

Source
pub fn hex_encode(bytes: &[u8]) -> String
Expand description

字节切片 → 小写 hex 字符串(无依赖,逐字节 {:02x}

统一 workspace 内三处手写 hex 编码(zenith-ebpf/zenith-net/zenith-tls), 避免重复实现与格式分歧。