Closed nddipiazza closed 3 years ago
Thanks for your suggestion.
I don't see a reason to rush an actual implementation. This certainly requires more design. I'll keep your issue https://github.com/jOOQ/jOOU/issues/23 open to track community interest.
Thanks @lukaseder
This is going to be very useful on a PR I'm working on for Apache Tika. We are doing some parsing of MS-FSSHTTPB file structure and all of the parsing code is written on c#. So as I'm going from C# to Java, of course there are tons of unsigned data types to deal with. So as I port the code, i'd like to switch all uint
with your UInteger but it's tricky because of all the bitwise ops. Adding a few methods goes a long way.
OK, how about this:
UInteger
?)inclusiveOr(int val)
. What if val
is negative? do we just pretend it's an unsigned int
? Or, xor(long val)
. What if it overflows?There are more. I don't want to spend the time on this right now (unless you have some budget?), because:
add a left-shift operator to Unsigned integer
TODO: