1MS_GSWAP(3)                Library Functions Manual                MS_GSWAP(3)
2
3
4

NAME

6       ms_gswap - Generalized, in-place byte swapping routines
7
8

SYNOPSIS

10       #include <libmseed.h>
11
12       void  ms_gswap2 ( void *data2 );
13
14       void  ms_gswap3 ( void *data3 );
15
16       void  ms_gswap4 ( void *data4 );
17
18       void  ms_gswap8 ( void *data8 );
19
20       void  ms_gswap2a ( void *data2 );
21
22       void  ms_gswap4a ( void *data4 );
23
24       void  ms_gswap8a ( void *data8 );
25
26

DESCRIPTION

28       These  routines swap between LSBF (little-endian) and MSBF (big-endian)
29       byte orders.  The specified quantities are swapped in-place.  There are
30       two  versions  of most routines: a generic one that works on quantities
31       regardless of memory alignment (ms_gswap#) and one that works on memory
32       aligned quantities (ms_gswap#a).  The versions for memory aligned quan‐
33       tities are much faster than their  generic  versions,  but  the  memory
34       *must*  be aligned.  You have been warned. There is only a generic ver‐
35       sion for 3-byte quantities.
36
37

AUTHOR

39       Chad Trabant
40       IRIS Data Management Center
41
42
43
44Libmseed API                      2006/12/20                       MS_GSWAP(3)
Impressum