summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentracing-cpp/mocktracer/src/utility.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/jaegertracing/opentracing-cpp/mocktracer/src/utility.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/jaegertracing/opentracing-cpp/mocktracer/src/utility.h b/src/jaegertracing/opentracing-cpp/mocktracer/src/utility.h
new file mode 100644
index 000000000..f7cff91b6
--- /dev/null
+++ b/src/jaegertracing/opentracing-cpp/mocktracer/src/utility.h
@@ -0,0 +1,17 @@
+#ifndef OPENTRACING_MOCKTRACER_UTILITY_H
+#define OPENTRACING_MOCKTRACER_UTILITY_H
+
+#include <opentracing/mocktracer/tracer.h>
+#include <cstdint>
+
+namespace opentracing {
+BEGIN_OPENTRACING_ABI_NAMESPACE
+namespace mocktracer {
+// If the native architecture is big endian, swaps the endianness of x
+uint64_t SwapEndianIfBig(uint64_t x);
+uint32_t SwapEndianIfBig(uint32_t x);
+} // namespace mocktracer
+END_OPENTRACING_ABI_NAMESPACE
+} // namespace opentracing
+
+#endif // OPENTRACING_MOCKTRACER_UTILITY_H