Regular API function

simPackFloats

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

All regular API functions on one page