yamcs/yamcs — pull request #13 by fqqb (2013-06-27 13:06:56+00:00)
Title: Integer processing

Please check this one carefully. I've tried not to break any unit tests.
Basically I came across an instance where I needed to read a uint larger than 32 bytes.
Yamcs didn't let me, so I sought to find out why.

I have modified the code so that it works for at least my case, and added some unit tests as well.

On a performance level i wasn't sure whether it would have been better to split the extractRawAndCalibrateInteger method into two (one for ints, one for longs). I stuck to one method, but extended the ranges of all variables to longs. Let me know if you'd prefer to do otherwise, and I'll modify this pull request

While doing this I also discovered that the old code contained an error with reading some 3-byte integers. That's what the first commit is about.