MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / hex_encode

Function hex_encode

nodedb/src/control/planner/wasm/runtime.rs:108–110  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

106}
107
108fn hex_encode(bytes: &[u8]) -> String {
109 bytes.iter().map(|b| format!("{b:02x}")).collect()
110}
111
112#[cfg(test)]
113mod tests {

Callers 1

sha256_hexFunction · 0.70

Calls 2

collectMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected