Regular API function

simUnpackDoubles

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

All regular API functions on one page