MCPcopy Create free account
hub / github.com/apache/arrow-rs / decode_hex_digit

Function decode_hex_digit

arrow-json/src/reader/binary_array.rs:30–37  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

28
29#[inline]
30fn decode_hex_digit(byte: u8) -> Option<u8> {
31 match byte {
32 b'0'..=b'9' => Some(byte - b'0'),
33 b'a'..=b'f' => Some(byte - b'a' + 10),
34 b'A'..=b'F' => Some(byte - b'A' + 10),
35 _ => None,
36 }
37}
38
39fn invalid_hex_error_at(index: usize, byte: u8) -> ArrowError {
40 ArrowError::JsonError(format!(

Callers 1

decode_hex_to_writerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected