Interface StructLayout.FieldIO

All Known Implementing Classes:
StructLayout.ArrayFieldIO, StructLayout.DefaultFieldIO, StructLayout.EnumFieldIO, StructLayout.FunctionFieldIO, StructLayout.InnerStructFieldIO, StructLayout.MappedFieldIO, StructLayout.NumberFieldIO, StructLayout.PointerFieldIO, StructLayout.StringFieldIO
Enclosing class:
StructLayout

static interface StructLayout.FieldIO
  • Method Details

    • put

      Writes a ruby value to the native struct member as the appropriate native value.
      Parameters:
      context - the current context
      cache - The value cache
      ptr - The struct memory area.
      value - The ruby value to write to the native struct member.
    • get

      Reads a ruby value from the struct member.
      Parameters:
      cache - The cache used to store
      ptr - The struct memory area.
      Returns:
      A ruby object equivalent to the native member value.
    • isCacheable

      boolean isCacheable()
      Gets the cacheable status of this Struct member
      Returns:
      true if this member type is cacheable
    • isValueReferenceNeeded

      boolean isValueReferenceNeeded()
      Checks if a reference to the ruby object assigned to this field needs to be stored
      Returns:
      true if this member type requires the ruby value to be stored.