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

Function is_hex

crates/openshell-vfio/src/sysfs.rs:197–199  ·  view source on GitHub ↗
(b: u8)

Source from the content-addressed store, hash-verified

195}
196
197fn is_hex(b: u8) -> bool {
198 b.is_ascii_hexdigit()
199}
200
201/// Returns `true` if `data` contains only safe characters for sysfs values
202/// (alphanumeric plus `:`, `.`, `-`, `_`).

Callers 1

validate_bdfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected