MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / IsBigEndian

Function IsBigEndian

SampleFramework12/v1.00/TinyEXR.cpp:6569–6577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6567}
6568
6569bool IsBigEndian(void)
6570{
6571 union {
6572 unsigned int i;
6573 char c[4];
6574 } bint = {0x01020304};
6575
6576 return bint.c[0] == 1;
6577}
6578
6579void
6580swap2(unsigned short* val)

Callers 7

ReadAttributeFunction · 0.85
WriteAttributeFunction · 0.85
ReadChannelInfoFunction · 0.85
WriteChannelInfoFunction · 0.85
LoadMultiChannelEXRFunction · 0.85
SaveMultiChannelEXRFunction · 0.85
LoadDeepEXRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected