is java byte the same as C# byte?

后端 未结 4 1065
栀梦
栀梦 2020-12-17 17:17

Native method from dll works in java if the input parameter is array of bytes - byte[]. If we use the same method from c# it throws EntryPointNotFoundException.

Is t

4条回答
  •  暖寄归人
    2020-12-17 17:59

    Java lacks the unsigned types. In particular, Java lacks a primitive type for an unsigned byte. The Java byte type is signed, while the C# byte is unsigned and sbyte is signed.

提交回复
热议问题