Something seems to be wrong with indexed access to a byteblock.

index 1 seems to be the 2nd byte and indexes 0 and 4 are invalid.

local
hexstr="88342d0000000000e1fa070000000000e42e0000000000004bdf430a0054e3403fd40c000000000063220200000000002b10000000000000000000006054e340fc01000000000000fc01000000000000"
local b=binary.from_hex(hexstr, 80)
binary.default_get_set_type("n")
local up=binary.select(b,33,36)
binary.set_dump_rules("hexcoded"," ", "~")
local xup=binary.dump(up)
win.debug(xup)
binary.default_get_set_type("n")
local n
for (local i = 1; i le 4; i++)
n = up[i]
win.debug("i", i, "n", n)
endfor



Reply via email to