Go to the documentation of this file.
48 for (swap_loop = 0, temp = buffer; swap_loop < number_of_swaps; swap_loop++, temp++) {
49 *temp = (short)(((*temp & 0x00ff) << 8) |
50 ((*temp & 0xff00) >> 8));
70 for (swap_loop = 0, temp = buffer; swap_loop < number_of_swaps; swap_loop++, temp++) {
71 *temp = ((*temp & 0x000000ff) << 24) |
72 ((*temp & 0x0000ff00) << 8) |
73 ((*temp & 0x00ff0000) >> 8) |
74 ((*temp & 0xff000000) >> 24);
194 switch (field->info->data_type_id) {
223 "epr_swap_endian_order: DOUBLE type was not yet processed");
227 "epr_swap_endian_order: unknown data type");
#define EPR_LE_MAGIC_BYTE_1
unsigned short epr_ushort
#define EPR_LE_MAGIC_BYTE_3
void byte_swap_float(float *buffer, epr_uint number_of_swaps)
void byte_swap_uint(epr_uint *buffer, epr_uint number_of_swaps)
@ e_err_invalid_data_format
int epr_is_little_endian_order()
void epr_set_err(EPR_EErrCode err_code, const char *err_message)
void epr_swap_endian_order(const EPR_SField *field)
#define EPR_LE_MAGIC_BYTE_0
#define EPR_LE_MAGIC_NUMBER
void byte_swap_ushort(epr_ushort *buffer, epr_uint number_of_swaps)
#define EPR_BE_MAGIC_NUMBER
#define EPR_LE_MAGIC_BYTE_2
void byte_swap_int(int *buffer, epr_uint number_of_swaps)
int epr_is_big_endian_order()
void byte_swap_short(short *buffer, epr_uint number_of_swaps)