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

Function xdr_u_long

src/common/xdr.cpp:792–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790
791
792bool_t xdr_u_long(xdr_t* xdrs, ULONG* ip)
793{
794/**************************************
795 *
796 * x d r _ u _ l o n g
797 *
798 **************************************
799 *
800 * Functional description
801 * Map from external to internal representation (or vice versa).
802 *
803 **************************************/
804
805 switch (xdrs->x_op)
806 {
807 case XDR_ENCODE:
808 return PUTLONG(xdrs, reinterpret_cast<SLONG*>(ip));
809
810 case XDR_DECODE:
811 if (!GETLONG(xdrs, reinterpret_cast<SLONG*>(ip)))
812 return FALSE;
813 return TRUE;
814
815 case XDR_FREE:
816 return TRUE;
817 }
818
819 return FALSE;
820}
821
822
823bool_t xdr_u_short(xdr_t* xdrs, u_short* ip)

Callers 1

xdr_blob_streamFunction · 0.85

Calls 2

PUTLONGFunction · 0.85
GETLONGFunction · 0.85

Tested by

no test coverage detected