Transfers of date data (Server)
For date data to be portable when transferred across different computer architectures, the DataBlade API provides functions to handle type alignment and byte order.
- mi_get_date()
- Copies an aligned mi_date value, converting any difference in alignment or byte order on the client computer to that of the server computer
- mi_put_date()
- Copies an aligned mi_date value, converting any difference in alignment or byte order on the server computer to that of the client computer
The mi_get_date() and mi_put_date() functions are useful in the send and receive support function of an opaque data type that contains mi_date values. They enable you to ensure that DATE values remain aligned when transferred to and from client applications, which possibly have unaligned data buffers.