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

Function decode_hex_nibble

crates/openshell-supervisor-network/src/l7/rest.rs:344–351  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

342}
343
344fn decode_hex_nibble(byte: u8) -> Option<u8> {
345 match byte {
346 b'0'..=b'9' => Some(byte - b'0'),
347 b'a'..=b'f' => Some(byte - b'a' + 10),
348 b'A'..=b'F' => Some(byte - b'A' + 10),
349 _ => None,
350 }
351}
352
353/// Forward an allowed HTTP request to upstream and relay the response back.
354///

Callers 1

decode_query_componentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected