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/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
float[] doubleNumbers=sim.unpackDoubleTable(buffer data,int startDoubleIndex=0,int doubleCount=0,int 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
Python
synopsis
list doubleNumbers=sim.unpackDoubleTable(bytes data,int startDoubleIndex=0,int doubleCount=0,int additionalByteOffset=0)