![]() |
|
The mi_fix_smallint() function converts the specified 2-byte integer to or from the byte order of the client computer.
The mi_fix_smallint() function is useful in send and receive support functions for opaque data types when the opaque type contains mi_smallint components that need to be converted to and from the client byte order.
For maximum portability, this function accepts and returns fully promoted mi_integer values instead of mi_smallint values. Arguments and return values might therefore require casting.
mi_unsigned_integer | is the value in the desired byte order. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_fix_integer(), mi_get_bytes(), mi_get_double_precision(), mi_get_integer(), mi_get_smallint(), mi_put_bytes(), mi_put_double_precision(), mi_put_integer(), and mi_put_smallint().