Function rcutils_string_map_key_existsn

Function Documentation

bool rcutils_string_map_key_existsn(const rcutils_string_map_t *string_map, const char *key, size_t key_length)

Get whether or not a key of known length exists.

Identical to rcutils_string_map_key_exists() but without relying on key to be a null terminated c string.

Parameters:
  • string_map[in] rcutils_string_map_t to be searched

  • key[in] map key

  • key_length[in] map key length

Returns:

true if key is in the map, or

Returns:

false if key is not in the map, or

Returns:

false for invalid arguments, or

Returns:

false if the string map is invalid.