Just thought I would check if there was a Phobos method available
or if others had pointers. I'm currently just using a function:
bool bigEndian() {
int i = 1;
return *cast(ubyte*)&i == 0;
}
Any other options?
I'm using this for UUID <-> GUID conversion. GUID uses Native
ordering for 3 groupings.

Just thought I would check if there was a Phobos method available or if
others had pointers. I'm currently just using a function:
bool bigEndian() {
int i = 1;
return *cast(ubyte*)&i == 0;
}
Any other options?
I'm using this for UUID <-> GUID conversion. GUID uses Native ordering
for 3 groupings.