• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/home/pascal/depot/filedata/src/epr/epr_swap.h

00001 /*
00002  * $Id: epr__swap_8h_source.html,v 1.11 2013/02/14 16:57:54 pascal Exp $
00003  *
00004  * Copyright (C) 2002 by Brockmann Consult (info@brockmann-consult.de)
00005  *
00006  * This program is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU General Public License as published by the
00008  * Free Software Foundation. This program is distributed in the hope it will
00009  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00010  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011  * See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00016  */
00017 
00018 #ifndef EPR_SWAP_H_INCL
00019 #define EPR_SWAP_H_INCL
00020 
00021 #include <stdio.h> /* just to get the ANSI-C type FILE */
00022 
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #endif
00027 
00028 void byte_swap_short(short *buffer, uint number_of_swaps);
00029 void byte_swap_ushort(ushort* buffer, uint number_of_swaps);
00030 void byte_swap_long(long *buffer, uint number_of_swaps);
00031 void byte_swap_ulong(ulong* buffer, uint number_of_swaps);
00032 void byte_swap_float(float* buffer, uint number_of_swaps);
00033 void epr_swap_endian_order(const EPR_SField* field);
00034 int epr_is_big_endian_order();
00035 int epr_is_little_endian_order();
00036 
00037 
00038 #ifdef __cplusplus
00039 }
00040 #endif
00041 
00042 
00043 #endif /* EPR_SWAP_H_INCL */

Generated on Thu Feb 14 2013 17:59:03 for filedata.kdevelop by  doxygen 1.7.1