Transfer eight-byte integers (Server)

To transfer eight-byte integers between different computer architectures, the DataBlade® API provides the following functions that handle type alignment and byte order.

DataBlade API Description
mi_get_int8() or mi_get_bigint() Copies an aligned eight-byte integer, converting any difference in alignment or byte order on the client computer to that of the server computer
mi_put_int8() or mi_put_bigint() Copies an aligned eight-byte integer, converting any difference in alignment or byte order on the server computer to that of the client computer

The mi_get_int8() and mi_put_int8() functions are useful in the send and receive support function of an opaque data type that contains mi_int8 values. The mi_get_bigint() and mi_put_bigint() functions are useful in the send and receive support function of an opaque data type that contains mi_bigint values. These functions ensure that eight-byte integer (INT8) values remain aligned when transferred to and from client applications.