Go to the documentation of this file.
9 #ifndef LLDB_UTILITY_UUID_H
10 #define LLDB_UTILITY_UUID_H
12 #include "llvm/ADT/ArrayRef.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Support/Endian.h"
31 UUID(llvm::ArrayRef<uint8_t> bytes) :
m_bytes(bytes.begin(), bytes.end()) {
32 if (llvm::all_of(
m_bytes, [](uint8_t b) {
return b == 0; })) {
41 llvm::support::ulittle32_t
Data1;
42 llvm::support::ulittle16_t
Data2;
43 llvm::support::ulittle16_t
Data3;
46 llvm::support::ulittle32_t
Age;
58 =
UUID(llvm::ArrayRef<uint8_t>(
reinterpret_cast<const uint8_t *
>(bytes),
68 explicit operator bool()
const {
return IsValid(); }
87 static llvm::StringRef
100 return !(LHS == RHS);
115 #endif // LLDB_UTILITY_UUID_H
llvm::support::ulittle32_t Age
llvm::support::ulittle16_t Data3
friend bool operator<(const UUID &LHS, const UUID &RHS)
struct lldb_private::UUID::CvRecordPdb70::@43 Uuid
llvm::support::ulittle16_t Data2
std::string GetAsString(llvm::StringRef separator="-") const
friend bool operator>=(const UUID &LHS, const UUID &RHS)
UUID(llvm::ArrayRef< uint8_t > bytes)
Creates a uuid from the data pointed to by the bytes argument.
friend bool operator==(const UUID &LHS, const UUID &RHS)
llvm::support::ulittle32_t Data1
string(SUBSTRING ${p} 10 -1 pStripped) if($
friend bool operator<=(const UUID &LHS, const UUID &RHS)
friend bool operator!=(const UUID &LHS, const UUID &RHS)
void Dump(Stream *s) const
bool SetFromStringRef(llvm::StringRef str)
static llvm::StringRef DecodeUUIDBytesFromString(llvm::StringRef str, llvm::SmallVectorImpl< uint8_t > &uuid_bytes)
Decode as many UUID bytes as possible from the C string cstr.
friend bool operator>(const UUID &LHS, const UUID &RHS)
A class that represents a running process on the host machine.
UUID(const void *bytes, uint32_t num_bytes)
Creates a UUID from the data pointed to by the bytes argument.
llvm::SmallVector< uint8_t, 20 > m_bytes
llvm::ArrayRef< uint8_t > GetBytes() const