class FFI::StructGenerator::Field
def initialize(name, type)
def initialize(name, type) @name = name @type = type @offset = nil @size = nil end
def offset=(o)
def offset=(o) @offset = o end
def to_config(name)
def to_config(name) buf = [] buf << "rbx.platform.#{name}.#{@name}.offset = #{@offset}" buf << "rbx.platform.#{name}.#{@name}.size = #{@size}" buf << "rbx.platform.#{name}.#{@name}.type = #{@type}" if @type buf end