Main Page Class Hierarchy Compound List File List Compound Members File Members

# swap.c File Reference

`#include <string.h>`
`#include <swap.h>`

Go to the source code of this file.

## Functions
void | SwapShort (short *data)
void | SwapInt (int *data)
void | SwapLong (long *data)
void | SwapDouble (double *data)
int | WaveMsgMakeLocal (TRACE_HEADER *wvmsg)
void | SwapFloat (float *data)

## Function Documentation

void SwapDouble | ( | double * | data | ) |

| Definition at line 91 of file swap.c. Referenced by SAC_SwapDouble(), SwapDo(), and WaveMsgMakeLocal().

void SwapFloat | ( | float * | data | ) |

| Definition at line 259 of file swap.c. Referenced by read_head(), SACPABase_end_scn(), SACPABase_end_scn_gm(), SwapDo(), and swapsac().

void SwapInt | ( | int * | data | ) |

| Definition at line 52 of file swap.c. Referenced by WaveMsgMakeLocal().

void SwapLong | ( | long * | data | ) |

| Definition at line 72 of file swap.c. Referenced by add_seisan_channel_data(), close_seisan_file(), end_seisan_channel(), extract(), read_head(), read_tag(), SAC_SwapLong(), start_seisan_channel(), SUDSPA_next(), SwapDo(), swapsac(), WaveMsgMakeLocal(), and write_seisan().

void SwapShort | ( | short * | data | ) |

| Definition at line 36 of file swap.c. Referenced by read_frame(), read_head(), read_tag(), SAC_SwapShort(), SUDSPA_next(), SwapDo(), and WaveMsgMakeLocal().

int WaveMsgMakeLocal | ( | TRACE_HEADER * | wvmsg | ) |

| Definition at line 129 of file swap.c. References TRACE_HEADER::datatype, TRACE_HEADER::endtime, TRACE_HEADER::nsamp, TRACE_HEADER::pinno, TRACE_HEADER::samprate, TRACE_HEADER::starttime, SwapDouble(), SwapInt(), SwapLong(), and SwapShort(). Referenced by AHPA_next(), pa_find_data(), SACPABase_write_trace(), SUDSPA_next(), and TANKPA_next().