#include <uuid.h>
Definition at line 18 of file uuid.h.
Botan::UUID::UUID |
( |
const std::vector< uint8_t > & |
blob | ) |
|
|
inline |
Definition at line 36 of file uuid.h.
References Botan::hex_encode().
40 throw Invalid_Argument(
"Bad UUID blob " +
hex_encode(blob));
void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase)
Botan::UUID::UUID |
( |
const std::string & |
uuid_str | ) |
|
|
inline |
Definition at line 46 of file uuid.h.
References Botan::hex_decode().
48 if(uuid_str.size() != 36 ||
50 uuid_str[14] !=
'-' ||
51 uuid_str[19] !=
'-' ||
54 throw Invalid_Argument(
"Bad UUID '" + uuid_str +
"'");
58 for(
size_t i = 0; i != uuid_str.size(); ++i)
70 if(m_uuid.size() != 16)
72 throw Invalid_Argument(
"Bad UUID '" + uuid_str +
"'");
size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t &input_consumed, bool ignore_ws)
const std::vector<uint8_t> Botan::UUID::binary_value |
( |
| ) |
const |
|
inline |
bool Botan::UUID::is_valid |
( |
| ) |
const |
|
inline |
bool Botan::UUID::operator!= |
( |
const UUID & |
other | ) |
|
|
inline |
Definition at line 96 of file uuid.h.
96 {
return !(*
this == other); }
bool Botan::UUID::operator== |
( |
const UUID & |
other | ) |
|
|
inline |
Definition at line 91 of file uuid.h.
93 return m_uuid == other.m_uuid;
std::string Botan::UUID::to_string |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: