Macro libyml::AS_HEX_AT

source ·
macro_rules! AS_HEX_AT {
    ($string:expr, $offset:expr) => { ... };
}
Expand description

Converts a hexadecimal character at a given offset in a string to its corresponding integer value.

§Parameters

  • string: A reference to a string containing hexadecimal characters.
  • offset: The offset in the string where the hexadecimal character is located.

§Return

An integer representing the hexadecimal value of the character at the given offset.

§Note

This macro assumes that the input string contains valid hexadecimal characters.