1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include "Resolver.h"
#include "DataTypes.h"
template <class T>
INLINE void swap(T& a, T& b) {
T temp = a; // A temporary variable is needed for swapping values
a = b;
b = temp;
}
INLINE void* reverse_endian(char *ptr, size_t byteWidth, size_t size);
INLINE void* int8_to_int32(int32_t *dest, const int8_t *source, size_t size);
INLINE void* int16_to_int32(int32_t *dest, const int16_t *source, size_t size);
INLINE void* int24_to_int32(int32_t *dest, const int24_t *source, size_t size);
INLINE void* int32_to_int64(int64_t *dest, const int32_t *source, size_t size);
INLINE void* int32_to_int8(int8_t *dest, const int32_t *source, size_t size);
INLINE void* int32_to_int16(int16_t *dest, const int32_t *source, size_t size);
INLINE void* int32_to_int24(int24_t *dest, const int32_t *source, size_t size);
INLINE void* int64_to_int32(int32_t *dest, const int64_t *source, size_t size);
|