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 llvm::support::ulittle32_t
Data1;
32 llvm::support::ulittle16_t
Data2;
33 llvm::support::ulittle16_t
Data3;
36 llvm::support::ulittle32_t
Age;
47 return fromData({
reinterpret_cast<const uint8_t *
>(bytes), num_bytes});
60 {
reinterpret_cast<const uint8_t *
>(bytes), num_bytes});
67 if (llvm::all_of(bytes, [](uint8_t b) {
return b == 0; }))
78 explicit operator bool()
const {
return IsValid(); }
101 static llvm::StringRef
106 UUID(llvm::ArrayRef<uint8_t> bytes) :
m_bytes(bytes.begin(), bytes.end()) {}
116 return !(LHS == RHS);
131 #endif // LLDB_UTILITY_UUID_H
llvm::support::ulittle32_t Age
static UUID fromData(const void *bytes, uint32_t num_bytes)
Creates a UUID from the data pointed to by the bytes argument.
llvm::support::ulittle16_t Data3
friend bool operator<(const UUID &LHS, const UUID &RHS)
struct lldb_private::UUID::CvRecordPdb70::@45 Uuid
llvm::support::ulittle16_t Data2
std::string GetAsString(llvm::StringRef separator="-") const
static UUID fromData(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)
UUID(llvm::ArrayRef< uint8_t > bytes)
friend bool operator==(const UUID &LHS, const UUID &RHS)
static UUID fromOptionalData(llvm::ArrayRef< uint8_t > bytes)
Creates a UUID from the data pointed to by the bytes argument.
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)
static UUID fromCvRecord(CvRecordPdb70 debug_info)
Create a UUID from CvRecordPdb70.
A class that represents a running process on the host machine.
llvm::SmallVector< uint8_t, 20 > m_bytes
static UUID fromOptionalData(const void *bytes, uint32_t num_bytes)
Creates a UUID from the data pointed to by the bytes argument.
bool SetFromOptionalStringRef(llvm::StringRef str)
llvm::ArrayRef< uint8_t > GetBytes() const