GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
g3dfpxdr.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "G3d_intern.h"
Include dependency graph for g3dfpxdr.c:

Go to the source code of this file.

Functions

int G3d_isXdrNullNum (const void *num, int isFloat)
 
int G3d_isXdrNullFloat (const float *f)
 
int G3d_isXdrNullDouble (const double *d)
 
void G3d_setXdrNullNum (void *num, int isFloat)
 
void G3d_setXdrNullDouble (double *d)
 
void G3d_setXdrNullFloat (float *f)
 
int G3d_initFpXdr (G3D_Map *map, int misuseBytes)
 
int G3d_initCopyToXdr (G3D_Map *map, int sType)
 
int G3d_copyToXdr (const void *src, int nofNum)
 
int G3d_initCopyFromXdr (G3D_Map *map, int dType)
 
int G3d_copyFromXdr (int nofNum, void *dst)
 

Variables

XDR xdrEncodeStream
 
XDR xdrDecodeStream
 

Function Documentation

int G3d_copyFromXdr ( int  nofNum,
void *  dst 
)
int G3d_copyToXdr ( const void *  src,
int  nofNum 
)
int G3d_initCopyFromXdr ( G3D_Map *  map,
int  dType 
)
int G3d_initCopyToXdr ( G3D_Map *  map,
int  sType 
)
int G3d_initFpXdr ( G3D_Map *  map,
int  misuseBytes 
)

Definition at line 64 of file g3dfpxdr.c.

References G3d_error(), G3d_malloc(), G3D_MAX, G3d_realloc(), NULL, xdr, xdrDecodeStream, xdrEncodeStream, and xdrLength.

Referenced by G3d_fillHeader().

int G3d_isXdrNullDouble ( const double *  d)

Definition at line 30 of file g3dfpxdr.c.

References G3d_isXdrNullNum().

int G3d_isXdrNullFloat ( const float *  f)

Definition at line 23 of file g3dfpxdr.c.

References G3d_isXdrNullNum().

int G3d_isXdrNullNum ( const void *  num,
int  isFloat 
)

Definition at line 12 of file g3dfpxdr.c.

Referenced by G3d_copyFromXdr(), G3d_isXdrNullDouble(), and G3d_isXdrNullFloat().

void G3d_setXdrNullDouble ( double *  d)

Definition at line 48 of file g3dfpxdr.c.

References G3d_setXdrNullNum().

void G3d_setXdrNullFloat ( float *  f)

Definition at line 55 of file g3dfpxdr.c.

References G3d_setXdrNullNum().

void G3d_setXdrNullNum ( void *  num,
int  isFloat 
)

Definition at line 37 of file g3dfpxdr.c.

Referenced by G3d_copyToXdr(), G3d_setXdrNullDouble(), and G3d_setXdrNullFloat().

Variable Documentation

XDR xdrDecodeStream

Definition at line 62 of file g3dfpxdr.c.

Referenced by G3d_initCopyFromXdr(), G3d_initFpXdr(), G3d_readDoubles(), and G3d_readInts().

XDR xdrEncodeStream

Definition at line 62 of file g3dfpxdr.c.

Referenced by G3d_initCopyToXdr(), G3d_initFpXdr(), G3d_writeDoubles(), and G3d_writeInts().