|
| | StringLookupKey (const char *pStr, uint32_t len, uint32_t owned) |
| | Constructor calculating hash from the provided string pStr and len.
|
| |
| | StringLookupKey (const char *pStr, uint32_t len, uint32_t owned, LookupHash hash) |
| | Constructor just for setting values.
|
| |
|
const char * | str () const |
| |
|
uint32_t | len () const |
| |
|
bool | owned () const |
| |
|
uint32_t | hash () const |
| |
|
bool | operator== (const StringLookupKey &other) const |
| |
|
bool | operator!= (const StringLookupKey &other) const |
| |
|
|
static constexpr bool | IsDirectHashKey = true |
| |
◆ StringLookupKey() [1/2]
template<uint32_t MaxLen>
Constructor calculating hash from the provided string pStr and len.
- Parameters
-
| pStr | Pointer to the string |
| len | Number of characters |
| owned | True if the string is owned |
- Warning
- String has to be null-terminated and up to MaxLen characters long. Undefined behavior otherwise.
◆ StringLookupKey() [2/2]
template<uint32_t MaxLen>
Constructor just for setting values.
- Parameters
-
| pStr | Pointer to the string |
| len | Number of characters |
| owned | True if the string is owned |
| hash | String hash |
The documentation for this struct was generated from the following file: