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

Function IsBigEndianMachine

libcppcryptfs/util/util.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83template unsigned long long MakeBigEndianNative(unsigned long long);
84
85BOOL
86IsBigEndianMachine()
87{
88 const unsigned int a = 1;
89
90 const unsigned char *p = (const unsigned char *)&a;
91
92 return !p[0];
93}
94
95const char *
96unicode_to_utf8(const WCHAR *unicode_str, char *buf, int buflen)

Callers 1

MakeBigEndianFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected