I've got a sub in my comms service module that constructs packets for sending via Asynchstreams.
I calculate a checksum for the data portion like this:
Code:
Log("preparing checksum")
Do While cnt < sz-1
oChk(0) = Bit.Xor(oChk(0),oData(cnt))
cnt = cnt + 1
Loop
Log("checksum done")
Unexpectedly slow number crunching
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bVM0q6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire