class FFI::Struct

def self.size

def self.size
  defined?(@layout) ? @layout.size : defined?(@size) ? @size : 0
end