Other CRC CCITT

udg

Expert
Licensed User
Longtime User
Hi all,

I found this snippet and it could be the right function for my case at hand.
Just one question: can you confirm that it will return, as the calculated CRC, a number between 0 and 65536, indipendetly of the given data, or will it extend to all the possible integer range, including negatives?

Row showing
B4X:
CRC = Bit.And(CRC, 32767) * 2
let me believe it will top 65534. I ask here because I'd like to be sure. TIA
 
Top