|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Functions | |
| constexpr bool | isHexadecimalDigit (char ch) noexcept |
| Check if a character value represents a valid hexadecimal Base16 character (ASCII values '0'-'9', 'A'-'F' or 'a'-'f'). | |
| constexpr Optional< int > | getHexadecimalDigitValue (char ch) noexcept |
| Get the hexadecimal digit value of a Base16 character. | |
| String | encodeLowercase (StringView data) |
| Encode arbitrary data into a lowercase hexadecimal Base16 string. | |
| String | encodeUppercase (StringView data) |
| Encode arbitrary data into an uppercase hexadecimal Base16 string. | |
| String | decode (StringView string) |
| Decode the original data from a lowercase or uppercase hexadecimal Base16 string. | |
|
nodiscardconstexprnoexcept |
Check if a character value represents a valid hexadecimal Base16 character (ASCII values '0'-'9', 'A'-'F' or 'a'-'f').
| ch | character to check. |
|
nodiscardconstexprnoexcept |
Get the hexadecimal digit value of a Base16 character.
(ASCII values '0'-'9', 'A'-'F' or 'a'-'f').
| ch | character to get the value of. |
| String grem::base16::encodeLowercase | ( | StringView | data | ) |
Encode arbitrary data into a lowercase hexadecimal Base16 string.
| data | input data to encode. |
| std::length_error | if the length of the encoded string exceeds the maximum supported string size. |
| std::bad_alloc | on allocation failure. |
| String grem::base16::encodeUppercase | ( | StringView | data | ) |
Encode arbitrary data into an uppercase hexadecimal Base16 string.
| data | input data to encode. |
| std::length_error | if the length of the encoded string exceeds the maximum supported string size. |
| std::bad_alloc | on allocation failure. |
| String grem::base16::decode | ( | StringView | string | ) |
Decode the original data from a lowercase or uppercase hexadecimal Base16 string.
| string | Base16 string to decode. |
| std::invalid_argument | if the length of the Base16 string is not divisible by 2. |
| std::length_error | if the length of the decoded byte sequence exceeds the maximum supported string size. |
| std::bad_alloc | on allocation failure. |