![]() |
|
The mi_put_datetime() function copies an mi_datetime (DATETIME) value, converting any difference in alignment or byte order on the server computer to that of the client computer.
data_ptr | is a pointer to the buffer to which the mi_datetime value is to be copied. |
dtime_ptr | is a pointer to the buffer from which to copy the mi_datetime value. |
The mi_put_datetime() function copies the mi_datetime value that dtime_ptr references into the user-defined buffer that data_ptr references. Upon completion, mi_put_datetime() returns the address of the next buffer to which data can be copied. The function advances the returned address by n bytes, ready for copying in the next value. In other words, if n is the length of the value that dtime_ptr identifies, the returned address is n bytes advanced from the original buffer address in data_ptr.
The mi_put_datetime() function is useful in a send support function of an opaque data type that contains mi_datetime values. Use this function to send an aligned DATETIME value to a client application, which possibly has unaligned data buffers.
mi_unsigned_char1 * | is the new address in the data_ptr data buffer. |
NULL | indicates that the function was not successful. |
See the description of the following functions: mi_get_datetime(), mi_put_bytes(), mi_put_date(), mi_put_decimal(), mi_put_double_precision(), mi_put_int8(), mi_put_integer(), mi_put_interval(), mi_put_lo_handle(), mi_put_money(), mi_put_real(), mi_put_smallint(), and mi_put_string().
For more information on the use of mi_put_datetime() in a send support function, see Converting Opaque-Type Data With Machine-Specific Data Types.