One-byte integers

The DataBlade® API supports the following data types for one-byte integer values.
DataBlade API one-byte integer Description
mi_sint1 Signed one-byte (eight bits) value
mi_int1 Unsigned one-byte (eight bits) value
To hold unsigned one-byte integers, you can also use the mi_unsigned_char1 data type.
Tip: The one-byte integer data types have names that are not consistent with those of other integer data types. The mi_int1 data type is for an unsigned one-byte integer while the mi_smallint, mi_integer, and mi_int8 data types are for the signed version of the two-, four-, and eight-byte integers, respectively. Use the mi_sint1 data type to hold a signed one-byte integer value.

The DataBlade API ensures that these integer data types are one byte on all computer architectures. There is no corresponding SQL data type for one-byte integers.

Values of the mi_int1 and mi_sint1 data types can fit into an MI_DATUM structure. They can be passed by value within C user-defined routines (UDRs).

All data types, including mi_int1 and mi_sint1, must be passed by reference within client LIBMI applications.