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

Function xdr_u_int

src/common/xdr.cpp:757–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755
756
757bool_t xdr_u_int(xdr_t* xdrs, unsigned* ip)
758{
759/**************************************
760 *
761 * x d r _ u _ i n t
762 *
763 **************************************
764 *
765 * Functional description
766 * Map from external to internal representation (or vice versa).
767 *
768 **************************************/
769 SLONG temp;
770
771 switch (xdrs->x_op)
772 {
773 case XDR_ENCODE:
774 temp = *ip;
775 return PUTLONG(xdrs, &temp);
776
777 case XDR_DECODE:
778 if (!GETLONG(xdrs, &temp))
779 return FALSE;
780 *ip = temp;
781 return TRUE;
782
783 case XDR_FREE:
784 return TRUE;
785
786 default:
787 return FALSE;
788 }
789}
790
791
792bool_t xdr_u_long(xdr_t* xdrs, ULONG* ip)

Callers

nothing calls this directly

Calls 2

PUTLONGFunction · 0.85
GETLONGFunction · 0.85

Tested by

no test coverage detected