Transfer byte data (Server)

To transfer byte data between different computer architectures, the DataBlade® API provides the following functions that handle type alignment and byte order.
mi_get_bytes()
Copies an aligned number of bytes, converting any difference in alignment or byte order on the client computer to that of the server computer
mi_put_bytes()
Copies an aligned number of bytes, converting any difference in alignment or byte order on the server computer to that of the client computer

The mi_get_bytes() and mi_put_bytes() functions are useful in the send and receive support function of an opaque data type that contains uninterpreted bytes. They ensure that byte data remain aligned when transferred to and from client applications.