Data Type Mapping between TDR and Java

TDR data type Java data type Description
bool boolean
char byte It is always 1 byte. It represents a byte array by defining a char array, which is used to store binary data.
int8 byte It is always 1 byte, and the value range is -128 to 127.
uint8 byte It is always 1 byte. Since Java does not support unsigned numbers, when the value exceeds 127, the user needs to convert it to a negative number.
tinyuint byte It is always 1 byte. Since Java does not support unsigned numbers, when the value exceeds 127, the user needs to convert it to a negative number.
int16 short It is always 2 byte.
uint16 short It is always 2 byte. Since Java does not support unsigned numbers, when the value exceeds 127, the user needs to convert it to a negative number.
int32 int It is always 4 byte.
uint32 int It is always 4 byte. Since Java does not support unsigned numbers, when the value exceeds 127, the user needs to convert it to a negative number.
int64 long It is always 8 byte.
uint64 long It is always 8 byte. Since Java does not support unsigned numbers, when the value exceeds 127, the user needs to convert it to a negative number.
float float It is always 4 byte.
double double It is always 8 byte.
string java.lang.String The string must always contain UTF-8 encoding or 7-bit ASCII text and cannot exceed 232.

results matching ""

    No results matching ""