Struct.size readonly



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

Notes

Example

--! luart-extensions import c -- Defines a RECT Struct local RECT = c.Struct("iiii", "left", "top", "right", "bottom") print("Size of RECT Struct is "..RECT.size.." bytes")