Macro libyml::CHECK_AT

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

This macro checks if the octet at the specified offset in the given string matches the provided octet.

§Parameters

  • string: A reference to the string where the octet will be checked.
  • octet: The octet to be checked.
  • offset: The offset from the start of the string where the octet will be checked.

§Return

  • bool: Returns true if the octet at the specified offset matches the provided octet, otherwise returns false.