Class Converter.ConverterIface

All Implemented Interfaces:
Proxy
Enclosing interface:
Converter

public static class Converter.ConverterIface extends TypeInterface
Provides an interface for converting data from one type to another type. The conversion can be stateful and may fail at any place.
Since:
2.24
  • Constructor Details

    • ConverterIface

      public ConverterIface(MemorySegment address)
      Create a ConverterIface proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideConvert

      public void overrideConvert(Arena arena, @Nullable Method method)
      Override virtual method convert.
      Parameters:
      method - the method to invoke
    • overrideReset

      public void overrideReset(Arena arena, @Nullable Method method)
      Override virtual method reset.
      Parameters:
      method - the method to invoke