The only 8-bit integer data type in Java is byte
, so you would use that. Unfortunately it is signed, so uint8_t
values over 127 will be seen as negative when converted into Java byte
. This is not really a problem because the stored bits are the same.