parsePersistentUserId#

Fully qualified name: omni::structuredlog::detail::parsePersistentUserId

Defined in omni/structuredlog/StructuredLogSettingsUtils.h

inline bool omni::structuredlog::detail::parsePersistentUserId(
carb::cpp::string_view userId,
uint64_t *parsedUserId,
)#

Parses a persistent random user ID string.

Parameters:
  • userId[in] The hexadecimal persistent random user ID string to parse.

  • parsedUserId[out] Receives the parsed 64-bit value. This may not be nullptr.

Returns:

true if userId is a valid 64-bit hexadecimal value.

Returns:

false if userId is empty, contains non-hexadecimal characters, overflows a 64-bit value, or parsedUserId is nullptr.