GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
xdrfloat.c File Reference

DBMI Library (base) - external data representation (float) More...

#include "xdr.h"
Include dependency graph for xdrfloat.c:

Go to the source code of this file.

Functions

int db__send_float (float d)
 Send float. More...
 
int db__recv_float (float *d)
 Receive float. More...
 
int db__send_float_array (const float *x, int n)
 Send float array. More...
 
int db__recv_float_array (float **x, int *n)
 Receive float array. More...
 

Detailed Description

DBMI Library (base) - external data representation (float)

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file xdrfloat.c.

Function Documentation

◆ db__recv_float()

int db__recv_float ( float *  d)

Receive float.

Parameters
d
Returns

Definition at line 44 of file xdrfloat.c.

◆ db__recv_float_array()

int db__recv_float_array ( float **  x,
int *  n 
)

Receive float array.

Returns an allocated array of floats Caller is responsible for free()

Parameters
x
n
Returns

Definition at line 92 of file xdrfloat.c.

References count, and DB_OK.

◆ db__send_float()

int db__send_float ( float  d)

Send float.

Parameters
d
Returns

Definition at line 24 of file xdrfloat.c.

◆ db__send_float_array()

int db__send_float_array ( const float *  x,
int  n 
)

Send float array.

Parameters
x
n
Returns

Definition at line 65 of file xdrfloat.c.

References db__send(), DB_OK, DB_PROTOCOL_ERR, db_protocol_error(), and x.