|
ATLAS Offline Software
|
Go to the documentation of this file.
28 #ifndef CXXUTILS_GET_UNALIGNED_H
29 #define CXXUTILS_GET_UNALIGNED_H
65 memcpy (&ret,
p,
sizeof(ret));
85 memcpy (&ret,
p,
sizeof(ret));
105 memcpy (&ret,
p,
sizeof(ret));
245 #endif // not CXXUTILS_GET_UNALIGNED_H
int64_t get_unaligned< int64_t >(const uint8_t *ATH_RESTRICT &p)
double get_unaligned< double >(const uint8_t *ATH_RESTRICT &p)
int32_t get_unaligned< int32_t >(const uint8_t *ATH_RESTRICT &p)
uint64_t get_unaligned64(const uint8_t *ATH_RESTRICT &p)
Read a 8-byte little-endian value from a possibly unaligned pointer.
int16_t get_unaligned< int16_t >(const uint8_t *ATH_RESTRICT &p)
uint32_t htole32(uint32_t x)
T get_unaligned(const uint8_t *ATH_RESTRICT &p)
Define templated versions of the above functions.
setScaleOne setStatusOne setSaturated int16_t
float get_unaligned_float(const uint8_t *ATH_RESTRICT &p)
Read little-endian float value from a possibly unaligned pointer.
uint64_t get_unaligned< uint64_t >(const uint8_t *ATH_RESTRICT &p)
uint16_t get_unaligned16(const uint8_t *ATH_RESTRICT &p)
Read a 2-byte little-endian value from a possibly unaligned pointer.
double get_unaligned_double(const uint8_t *ATH_RESTRICT &p)
Read little-endian float value from a possibly unaligned pointer.
uint64_t htole64(uint64_t x)
Macro wrapping the nonstandard restrict keyword.
uint32_t get_unaligned< uint32_t >(const uint8_t *ATH_RESTRICT &p)
uint16_t get_unaligned< uint16_t >(const uint8_t *ATH_RESTRICT &p)
float get_unaligned< float >(const uint8_t *ATH_RESTRICT &p)
uint8_t get_unaligned< uint8_t >(const uint8_t *ATH_RESTRICT &p)
uint32_t get_unaligned32(const uint8_t *ATH_RESTRICT &p)
Read a 4-byte little-endian value from a possibly unaligned pointer.
int8_t get_unaligned< int8_t >(const uint8_t *ATH_RESTRICT &p)
uint16_t htole16(uint16_t x)