Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C 型 uint8_t および int8_t の正しい JNA マッピングは何ですか? ありがとうございました!
Java で唯一の 8 ビット整数データ型はbyteであるため、それを使用します。残念ながら署名されているため、uint8_tJava に変換すると 127 を超える値は負と見なされますbyte。格納されたビットは同じであるため、これは実際には問題ではありません。
byte
uint8_t