OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_swap.h
Go to the documentation of this file.
1 /*
2  * $Id: epr_swap.h,v 1.1.1.1 2004-10-28 19:22:23 norman Exp $
3  *
4  * Copyright (C) 2002 by Brockmann Consult (info@brockmann-consult.de)
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation. This program is distributed in the hope it will
9  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
10  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16  */
17 
18 #ifndef EPR_SWAP_H_INCL
19 #define EPR_SWAP_H_INCL
20 
21 #include <stdio.h> /* just to get the ANSI-C type FILE */
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 void byte_swap_short(short *buffer, epr_uint number_of_swaps);
28 void byte_swap_ushort(epr_ushort* buffer, epr_uint number_of_swaps);
29 void byte_swap_long(int *buffer, epr_uint number_of_swaps);
30 void byte_swap_uint(epr_uint* buffer, epr_uint number_of_swaps);
31 void byte_swap_float(float* buffer, epr_uint number_of_swaps);
32 void epr_swap_endian_order(const EPR_SField* field);
35 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 
42 #endif /* EPR_SWAP_H_INCL */
int epr_is_big_endian_order()
Definition: epr_swap.c:171
void byte_swap_short(short *buffer, epr_uint number_of_swaps)
Definition: epr_swap.c:43
void byte_swap_float(float *buffer, epr_uint number_of_swaps)
Definition: epr_swap.c:131
void epr_swap_endian_order(const EPR_SField *field)
Definition: epr_swap.c:192
unsigned int epr_uint
Definition: epr_api.h:188
unsigned short epr_ushort
Definition: epr_api.h:187
void byte_swap_ushort(epr_ushort *buffer, epr_uint number_of_swaps)
Definition: epr_swap.c:93
void byte_swap_uint(epr_uint *buffer, epr_uint number_of_swaps)
Definition: epr_swap.c:112
int epr_is_little_endian_order()
Definition: epr_swap.c:152
void byte_swap_long(int *buffer, epr_uint number_of_swaps)