* String: string in the Unicode character set, followed by a 0000X
* i.e. CHAR*
*/
-
- bool isBigEndian();
- bool isLittleEndian();
}
#endif
* Add another component to the current path. If first==true, start a new path.
*/
void addPathComponent(bool first, const std::string &typeName);
+
+ static bool isBigEndian();
+ static bool isLittleEndian();
+
};
} // namespace odc
-#include "oberon.h"
+#include "reader/reader.h"
namespace odc {
- bool isBigEndian() { // http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program
+ bool Reader::isBigEndian() { // http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program
union {
uint32_t i;
uint8_t c[4];
return test.c[0] == 1;
}
- bool isLittleEndian() {
+ bool Reader::isLittleEndian() {
return !isBigEndian();
}
}