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

Function xdr_long

src/common/xdr.cpp:550–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549
550bool_t xdr_long(xdr_t* xdrs, SLONG* ip)
551{
552/**************************************
553 *
554 * x d r _ l o n g
555 *
556 **************************************
557 *
558 * Functional description
559 * Map from external to internal representation (or vice versa).
560 *
561 **************************************/
562
563 switch (xdrs->x_op)
564 {
565 case XDR_ENCODE:
566 return PUTLONG(xdrs, ip);
567
568 case XDR_DECODE:
569 return GETLONG(xdrs, ip);
570
571 case XDR_FREE:
572 return TRUE;
573 }
574
575 return FALSE;
576}
577
578
579bool_t xdr_opaque(xdr_t* xdrs, SCHAR* p, unsigned len)

Callers 8

xdr_cstring_with_limitFunction · 0.85
xdr_longsFunction · 0.85
xdr_sliceFunction · 0.85
xdr_status_vectorFunction · 0.85
xdr_blobBufferFunction · 0.85
CAN_encode_decodeFunction · 0.85
xdr_sliceFunction · 0.85
xdr_datumFunction · 0.85

Calls 2

PUTLONGFunction · 0.85
GETLONGFunction · 0.85

Tested by

no test coverage detected