Struct.size readonly
Gets the current C Struct size in memory, in bytes. Notes This property returns the same result as the # length operator
Notes
Example
local c = require "c" -- Defines a RECT Struct local RECT = c.Struct("iiii", "left", "top", "right", "bottom") print("Size of RECT Struct is "..RECT.size.." bytes")