MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / upper_hex_nibble

Function upper_hex_nibble

crates/openshell-supervisor-network/src/l7/path.rs:334–340  ·  view source on GitHub ↗
(n: u8)

Source from the content-addressed store, hash-verified

332}
333
334fn upper_hex_nibble(n: u8) -> char {
335 match n {
336 0..=9 => (b'0' + n) as char,
337 10..=15 => (b'A' + (n - 10)) as char,
338 _ => unreachable!("nibble out of range"),
339 }
340}
341
342// ---------------------------------------------------------------------------
343// Tests

Callers 1

build_canonical_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected