bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.49k stars 583 forks source link

add getUnsigned() and putUnsigned() methods. #574

Closed before31 closed 2 years ago

before31 commented 2 years ago

add getUnsigned() and putUnsigned() methods to get the correct unsigned integer value directly.

saudet commented 2 years ago

Maybe we also want to add getUnsignedShort(), getUnsignedInt() etc while we're at it? Or are you OK with just bytes for now?

before31 commented 2 years ago

When you say getUnsignedInt(), you mean:

In my getUnsigned() implementation, it is the later one. The getUnsigned method actually returns a integer value in the range 0-255, and my need is that.

saudet commented 2 years ago

Your getUnsigned() is fine, I'm talking about 16, 32, and 64-bit values. You're never going to need those?

before31 commented 2 years ago

So far, I may not need those.