summaryrefslogtreecommitdiffstats
path: root/mocktracer/src/utility.h
blob: f7cff91b6bcd2fe947b527cc9893abc8b0cac1fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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