2#ifndef POSIX_POSIXGUID_H
3#define POSIX_POSIXGUID_H
78 n_assert((0 != ptr) && (size ==
sizeof(uint64_t) * 2));
SizeT AsBinary(const unsigned char *&outPtr) const
get pointer to binary data
Definition posixguid.cc:137
bool operator>(const PosixGuid &rhs) const
greater-then operator
Definition posixguid.cc:76
uint64_t lo
Definition posixguid.h:59
void Generate()
generate a new guid
Definition posixguid.cc:111
static PosixGuid FromString(const Util::String &str)
construct from string representation
Definition posixguid.cc:147
bool operator==(const PosixGuid &rhs) const
equality operator
Definition posixguid.cc:32
bool operator!=(const PosixGuid &rhs) const
inequlality operator
Definition posixguid.cc:41
bool operator>=(const PosixGuid &rhs) const
greater-or-equal operator
Definition posixguid.cc:93
static PosixGuid FromBinary(const unsigned char *ptr, SizeT numBytes)
construct from binary representation
Definition posixguid.cc:162
PosixGuid()
constructor
Definition posixguid.h:66
uint32_t HashCode() const
get a hash code (compatible with Util::HashTable)
Definition posixguid.cc:176
bool operator<=(const PosixGuid &rhs) const
less-or-equal operator
Definition posixguid.cc:67
Util::String AsString() const
get as string
Definition posixguid.cc:122
uint64_t hi
Definition posixguid.h:58
bool operator<(const PosixGuid &rhs) const
less-then operator
Definition posixguid.cc:50
void operator=(const Util::String &rhs)
assignment operator from string
Definition posixguid.cc:19
bool IsValid() const
return true if the contained guid is valid (not NIL)
Definition posixguid.cc:102
#define n_assert(exp)
Definition debug.h:50
void Copy(const void *from, void *to, size_t numBytes)
Copy a chunk of memory (note the argument order is different from memcpy()!
Definition osxmemory.cc:213
Posix implemention of a read-many write-few lock.
Definition posixsysfunc.cc:21
Nebula's universal string class.
Definition String.cs:8
int SizeT
Definition types.h:42