|
@ -131,6 +131,8 @@ inline uint8_t SwapBytes(uint8_t x) { return x; } |
|
|
template <> |
|
|
template <> |
|
|
inline int8_t SwapBytes(int8_t x) { return x; } |
|
|
inline int8_t SwapBytes(int8_t x) { return x; } |
|
|
template <> |
|
|
template <> |
|
|
|
|
|
inline signed char SwapBytes(signed char x) { return x; } |
|
|
|
|
|
template <> |
|
|
inline uint16_t SwapBytes(uint16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); } |
|
|
inline uint16_t SwapBytes(uint16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); } |
|
|
template <> |
|
|
template <> |
|
|
inline int16_t SwapBytes(int16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); } |
|
|
inline int16_t SwapBytes(int16_t x) { return V8_TYPED_ARRAY_BSWAP16(x); } |
|
|