| 892 | } |
| 893 | |
| 894 | bool_t xdr_t::x_getbytes(SCHAR* buff, unsigned bytecount) |
| 895 | { |
| 896 | /************************************** |
| 897 | * |
| 898 | * m e m _ g e t b y t e s |
| 899 | * |
| 900 | ************************************** |
| 901 | * |
| 902 | * Functional description |
| 903 | * Get a bunch of bytes from a memory stream if it fits. |
| 904 | * |
| 905 | **************************************/ |
| 906 | if (x_handy < bytecount) |
| 907 | return FALSE; |
| 908 | |
| 909 | if (bytecount) |
| 910 | { |
| 911 | memcpy(buff, x_private, bytecount); |
| 912 | x_private += bytecount; |
| 913 | x_handy -= bytecount; |
| 914 | } |
| 915 | |
| 916 | return TRUE; |
| 917 | } |
| 918 | |
| 919 | |
| 920 | SLONG xdr_peek_long(const xdr_t* xdrs, const void* data, size_t size) |