| 790 | |
| 791 | |
| 792 | bool_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 | |
| 823 | bool_t xdr_u_short(xdr_t* xdrs, u_short* ip) |
no test coverage detected