Check unsigned conversions

Issue #69 new
IJabz repo owner created an issue

In the code when reading formats we usually convert byte and short numeric fields to unsigned ints because the Java byte and short primitives are signed whereas the values should be interpreted as unsigned and therefore the max value cannot be held in Java datatype of same name.

  1. But is it always correct for all formats to treat as unsigned
  2. Do we always do the conversion
  3. We also have the same problems with Ints that they should really be converted to Long, however are there any cases where the Int value could be so large to cause such an issue, if it could be then we have another problem because many methods on ByteBuffer/Rando Files dont support indexing by long.
  4. Are we always writing data back as unsigned representation,

Comments (1)

  1. Log in to comment