class FFI::Struct

def self.size

Returns:
  • (Integer) -
def self.size
  defined?(@layout) ? @layout.size : defined?(@size) ? @size : 0
end