| 939 | |
| 940 | |
| 941 | bool_t xdr_t::x_putbytes(const SCHAR* buff, unsigned bytecount) |
| 942 | { |
| 943 | /************************************** |
| 944 | * |
| 945 | * m e m _ p u t b y t e s |
| 946 | * |
| 947 | ************************************** |
| 948 | * |
| 949 | * Functional description |
| 950 | * Put a bunch of bytes to a memory stream if it fits. |
| 951 | * |
| 952 | **************************************/ |
| 953 | if (x_handy < bytecount) |
| 954 | return FALSE; |
| 955 | |
| 956 | if (bytecount) |
| 957 | { |
| 958 | memcpy(x_private, buff, bytecount); |
| 959 | x_private += bytecount; |
| 960 | x_handy -= bytecount; |
| 961 | } |
| 962 | |
| 963 | return TRUE; |
| 964 | } |
| 965 | |
| 966 | xdr_t::~xdr_t() |
| 967 | { } |