MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / MakeBigEndian

Function MakeBigEndian

libcppcryptfs/util/util.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template<typename T>
63T MakeBigEndian(T n)
64{
65
66 if (!IsBigEndianMachine()) {
67 return swapBytesVal(n);
68 } else {
69 return n;
70 }
71}
72
73template unsigned long long MakeBigEndian(unsigned long long);
74

Callers 4

read_blockFunction · 0.85
write_blockFunction · 0.85
WriteVersionAndFileIdMethod · 0.85
MakeBigEndianNativeFunction · 0.85

Calls 2

IsBigEndianMachineFunction · 0.85
swapBytesValFunction · 0.85

Tested by

no test coverage detected