java.lang.Object
java.lang.Enum<TypeLayout>
ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
All Implemented Interfaces:
Serializable, Comparable<TypeLayout>

public enum TypeLayout extends Enum<TypeLayout>
Canonical ABI type layouts with size and alignment in bytes.

These correspond to the lowered representations of Component Model types in linear memory.

  • Enum Constant Details

  • Method Details

    • values

      public static TypeLayout[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TypeLayout valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • size

      public int size()
      Returns the size of this type in bytes.
      Returns:
      the size in bytes
    • alignment

      public int alignment()
      Returns the alignment of this type in bytes.
      Returns:
      the alignment in bytes