mardi 30 août 2016

Help, i cant get my head around this

I have some code which pulls in data from a web server and this is in binary so i need to parse it manually.

So for stage 1 I have made up an array of ints to simulate the data

Dim testCmd = Array As Int ( 0x41, 0x01, 0x00, 0x0a, 0x42, 0x02, 0x22, 0x22, 0x0a )

Here is the walk code
Sub ProcessInputFromServer2( inp() As Int , length As Int) As Int
Dim offset As Int

offset = 0
Do While length > 0
offset = offset + 3 + inp( offset + 1)
length = length - ( 3 + inp( offset +...

Help, i cant get my head around this

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bCI4FV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire