Regular API function

simPackDoubles

Description Packs a table of double floating-point numbers into a string. See also simUnpackDoubles and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis string data=simPackDoubles(table doubleNumbers,number startDoubleIndex=0,number doubleCount=0)
Lua parameters
doubleNumbers: a table containing double floating-point numbers. Non-numbers will be packed as zero values
startDoubleIndex: the zero-based index from which on data should be packed. Can be omitted in which case 0 is used
doubleCount: the amount of doubles that should be packed. Can be omitted in which case 0 is used (which indicates that the maximum available doubles should be packed from the indicated startDoubleIndex)
Lua return values
data: a string (values between 0 and 255) that contains packed double floating-point numbers from the table if operation was successful, nil otherwise

All regular API functions on one page