hello
I need to combine the 2 first bytes of the array to create an integer. My output keep being a array. Are you able to see what did I do wrong?
hello
I need to combine the 2 first bytes of the array to create an integer. My output keep being a array. Are you able to see what did I do wrong?
You have asked for 2 off int8, which is what it is giving you. Try int16.
Read the built in help (RH sidebar). It explains if you ask for a length of 2 you'll get 2 items. It is the data type (i.e. int16be) that specifies how many bytes to read from the input.
I.e. if you want 1, then set length to 1
We can close this topic, by reading the manual more concentrated I understood the way it works and found the reason of the 2 items (lenght needs to be at 1). Unfortunately, I won't be able to use this palette because my array is structured with Bytes and not with Integers
Show us.
The buffer parser accepts array of integer or a buffer input.
If your input is an actual array (not a buffer) of bytes it is simple to convert.