Regular API function

simUnpackDoubleTable / sim.unpackDoubleTable

Description Unpacks a string (or part of it) into a table of double floating-point numbers. See also sim.packDoubleTable and the other packing/unpacking functions.
C synopsis -
C parameters
C return value
Lua synopsis table doubleNumbers=sim.unpackDoubleTable(string data,number startDoubleIndex=0,number doubleCount=0,number additionalByteOffset=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+additionalByteOffset]). 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)
additionalByteOffset: a byte offset that will be added before reading the doubles. Can be omitted, in which case 0 is used.
Lua return values
doubleNumbers: a table containing unpacked double floating-point numbers if operation was successful, nil otherwise

All regular API functions on one page