class FFI::StructLayout::Enum

def put(ptr, value)

Returns:
  • (nil) -

Parameters:
  • value () --
  • ptr (AbstractMemory) -- pointer on a {Struct}
def put(ptr, value)
  ptr.put_int(offset, type.find(value))
end