Hello to all !
First I'd like to congretulate you for this helpful forum.
Here is my question:
1. I have in the DB file format description some lines like this:
2 byte numeric, field length in bytes So the first approach is to interpret the 2 byte number as generic
Java short. In this case if the most senior bit is 1, the short variable value will be negative.
The second approach is to interpet the 2 byte number as unsigned short.
For example if hardcoded may look like this:
int number = raf.readUnsignedShort();
In this case we double the length of the Java variable - from short to int.
So my question is does it matter which approach is used ?
If Java generic short(signed) is used, does it fail the assignment ?
Thanks, Pafka