Regular API function

simUnpackFloatTable

Description Unpacks a string (or part of it) into a table of floating-point numbers. See also simPackFloatTable and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis table floatingNumbers=simUnpackFloatTable(string data,number startFloatIndex=0,number floatCount=0,number additionalByteOffset=0)
Lua parameters
data: a string (values between 0 and 255) that contains packed floating-point numbers
startFloatIndex: the zero-based index from which on data should be unpacked (from data[4*startFloatIndex+1+additionalByteOffset]). Can be omitted in which case 0 is used
floatCount: the amount of floats that should be unpacked. Can be omitted in which case 0 is used (which indicates that the maximum of floats should be unpacked from the indicated startFloatIndex)
additionalByteOffset: a byte offset that will be added before reading the floats. Can be omitted, in which case 0 is used.
Lua return values
floatingNumbers: a table containing unpacked floating-point numbers if operation was successful, nil otherwise

All regular API functions on one page