2
* ADIOS is freely available under the terms of the BSD license described
3
* in the COPYING file in the top level directory of this source distribution.
5
* Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.
11
#include "adios_types.h"
13
void show_bytes(unsigned char * start, int len);
15
void swap_ptr(void * data, int size);
17
void swap_16_ptr(void *data);
19
void swap_32_ptr(void *data);
21
void swap_64_ptr(void *data);
23
void swap_128_ptr(void *data);
25
#define swap_16(data) swap_16_ptr(&(data))
27
#define swap_32(data) swap_32_ptr(&(data))
29
#define swap_64(data) swap_64_ptr(&(data))
31
#define swap_128(data) swap_128_ptr(&(data))
33
void swap_adios_type(void *data, enum ADIOS_DATATYPES type);
35
void swap_adios_type_array(void *payload, enum ADIOS_DATATYPES type, uint64_t payload_size);