Class TypeConverter

java.lang.Object
ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter

public final class TypeConverter extends Object
  • Method Details

    • javaTypeToValueType

      public static ai.tegmentum.webassembly4j.api.ValueType javaTypeToValueType(Class<?> type)
    • fromWasm

      public static Object fromWasm(Object wasmValue, Class<?> targetType)
    • isVoid

      public static boolean isVoid(Class<?> type)
    • isSupportedType

      public static boolean isSupportedType(Class<?> type)
    • isComplexType

      public static boolean isComplexType(Class<?> type)
      Returns true if the type requires marshalling through linear memory.
    • requiresMarshalling

      public static boolean requiresMarshalling(Class<?>[] paramTypes, Class<?> returnType)
      Returns true if any of the parameter types or the return type requires marshalling.