22 void*
operator new(
size_t s);
24 void operator delete(
void* ptr);
73OSXGuid::operator
new(
size_t size)
85OSXGuid::operator
delete(
void* ptr)
96 uuid_clear(this->
uuid);
114 n_assert((0 != ptr) && (size ==
sizeof(uuid_t)));
115 uuid_copy(this->
uuid, *(uuid_t*)ptr);
124 return sizeof(uuid_t);
OSX implementation of the Util::Guid class.
Definition osxguid.h:19
void Generate()
generate a new guid
Definition osxguid.cc:104
static SizeT BinarySize()
return the size of the binary representation in bytes
Definition osxguid.h:122
SizeT AsBinary(const unsigned char *&outPtr) const
get pointer to binary data
Definition osxguid.cc:128
Util::String AsString() const
get as string
Definition osxguid.cc:113
bool operator<(const OSXGuid &rhs) const
less-then operator
Definition osxguid.cc:59
IndexT HashCode() const
get a hash code (compatible with Util::HashTable)
Definition osxguid.cc:164
bool operator==(const OSXGuid &rhs) const
equality operator
Definition osxguid.cc:41
void operator=(const OSXGuid &rhs)
assignement operator
Definition osxguid.cc:17
bool IsValid() const
return true if the contained guid is valid (not NIL)
Definition osxguid.cc:95
bool operator<=(const OSXGuid &rhs) const
less-or-equal operator
Definition osxguid.cc:68
bool operator>(const OSXGuid &rhs) const
greater-then operator
Definition osxguid.cc:77
uuid_t uuid
Definition osxguid.h:66
bool operator>=(const OSXGuid &rhs) const
greater-or-equal operator
Definition osxguid.cc:86
static OSXGuid FromString(const Util::String &str)
construct from string representation
Definition osxguid.cc:138
bool operator!=(const OSXGuid &rhs) const
inequlality operator
Definition osxguid.cc:50
OSXGuid()
constructor
Definition osxguid.h:94
static OSXGuid FromBinary(const unsigned char *ptr, SizeT numBytes)
construct from binary representation
Definition osxguid.cc:150
#define n_assert(exp)
Definition debug.h:50
void * Alloc(HeapType heapType, size_t size, size_t alignment)
Allocate a block of memory from one of the global heaps.
Definition osxmemory.cc:56
void Free(HeapType heapType, void *ptr)
Free a block of memory.
Definition osxmemory.cc:136
@ ObjectHeap
Definition osxmemoryconfig.h:27
Definition osxsysfunc.h:21
Nebula's universal string class.
Definition string.h:50
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48