MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / xdr_float

Function xdr_float

src/common/xdr.cpp:486–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484
485
486bool_t xdr_float(xdr_t* xdrs, float* ip)
487{
488/**************************************
489 *
490 * x d r _ f l o a t
491 *
492 **************************************
493 *
494 * Functional description
495 * Map from external to internal representation (or vice versa).
496 *
497 **************************************/
498 fb_assert(sizeof(float) == sizeof(SLONG));
499
500 switch (xdrs->x_op)
501 {
502 case XDR_ENCODE:
503 return PUTLONG(xdrs, reinterpret_cast<SLONG*>(ip));
504
505 case XDR_DECODE:
506 return GETLONG(xdrs, reinterpret_cast<SLONG*>(ip));
507
508 case XDR_FREE:
509 return TRUE;
510 }
511
512 return FALSE;
513}
514
515
516bool_t xdr_int(xdr_t* xdrs, int* ip)

Callers 2

CAN_encode_decodeFunction · 0.85
xdr_datumFunction · 0.85

Calls 2

PUTLONGFunction · 0.85
GETLONGFunction · 0.85

Tested by

no test coverage detected