Transfer fixed-point data (Server)
To transfer fixed-point data between different computer
architectures, the DataBlade®
API provides
the following functions that handle type alignment and byte order.
DataBlade® API function | Description |
---|---|
mi_get_decimal() | Copies an aligned mi_decimal value, converting any difference in alignment or byte order on the client computer to that of the server computer |
mi_get_money() | Copies an aligned mi_money value, converting any difference in alignment or byte order on the client computer to that of the server computer |
mi_put_decimal() | Copies an aligned mi_decimal value, converting any difference in alignment or byte order on the server computer to that of the client computer |
mi_put_money() | Copies an aligned mi_money value, converting any difference in alignment or byte order on the server computer to that of the client computer |
The mi_get_decimal(), mi_get_money(), mi_put_decimal(), and mi_put_money() functions are useful in the send and receive support function of an opaque data type that contains mi_decimal or mi_money values. They ensure that fixed-point (DECIMAL or MONEY) values remain aligned when transferred to and from client applications.