lua-struct icon indicating copy to clipboard operation
lua-struct copied to clipboard

convertion byte array

Open alexx600 opened this issue 8 years ago • 0 comments

thank you for making the library available.

I would like to draw your attention to a few things that I can help others

In that LUA library using 2B 4B or 8B is not possible, arguments must be BB BBBB or BBBBBBBB.

When i was trying to convert 4 byte to float it is necessary to pass it to function one by one.

roll={140, 43, 88, 58}
b=struct.pack('BBBB',roll[1],roll[2],roll[3],roll[4])

alexx600 avatar Dec 29 '17 14:12 alexx600