Struct.size readonly



Gets the current C Struct size in memory, in bytes.

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")