Lines Matching defs:UUID
1 //===-- UUID.cpp ------------------------------------------------*- C++ -*-===//
10 #include "lldb/Core/UUID.h"
25 UUID::UUID() : m_num_uuid_bytes(16)
30 UUID::UUID(const UUID& rhs)
36 UUID::UUID (const void *uuid_bytes, uint32_t num_uuid_bytes)
41 const UUID&
42 UUID::operator=(const UUID& rhs)
52 UUID::~UUID()
57 UUID::Clear()
64 UUID::GetBytes() const
70 UUID::GetAsString (const char *separator) const
97 UUID::Dump (Stream *s) const
109 UUID::SetBytes (const void *uuid_bytes, uint32_t num_uuid_bytes)
123 // Unsupported UUID byte size
139 UUID::GetByteSize()
145 UUID::IsValid () const
179 UUID::DecodeUUIDBytesFromCString (const char *p, ValueType &uuid_bytes, const char **end, uint32_t num_uuid_bytes)
196 // Increment the byte that we are decoding within the UUID value
208 // UUID values can only consist of hex characters and '-' chars
221 UUID::SetFromCString (const char *cstr, uint32_t num_uuid_bytes)
232 const size_t uuid_byte_idx = UUID::DecodeUUIDBytesFromCString (p, m_uuid, &p, num_uuid_bytes);
234 // If we successfully decoded a UUID, return the amount of characters that
239 // Else return zero to indicate we were not able to parse a UUID value
246 lldb_private::operator == (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
248 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) == 0;
252 lldb_private::operator != (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
254 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) != 0;
258 lldb_private::operator < (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
260 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) < 0;
264 lldb_private::operator <= (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
266 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) <= 0;
270 lldb_private::operator > (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
272 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) > 0;
276 lldb_private::operator >= (const lldb_private::UUID &lhs, const lldb_private::UUID &rhs)
278 return ::memcmp (lhs.GetBytes(), rhs.GetBytes(), sizeof (lldb_private::UUID::ValueType)) >= 0;