Enum Class TypedArrayType

java.lang.Object
java.lang.Enum<TypedArrayType>
org.webkitgtk.jsc.TypedArrayType
All Implemented Interfaces:
Serializable, Comparable<TypedArrayType>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum TypedArrayType extends Enum<TypedArrayType> implements Enumeration
Possible types of the elements contained in a typed array.
Since:
2.38
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Array elements are 32-bit floating point numbers (float).
    Array elements are 64-bit floating point numbers (double).
    Array elements are 16-bit signed integers (int16_t).
    Array elements are 32-bit signed integers (int32_t).
    Array elements are 64-bit signed integers (int64_t).
    Array elements are 8-bit signed integers (int8_t).
    Not a typed array, or type unsupported.
    Array elements are 16-bit unsigned integers (uint16_t).
    Array elements are 32-bit unsigned integers (uint32_t).
    Array elements are 64-bit unsigned integers (uint64_t).
    Array elements are 8-bit unsigned integers (uint8_t).
    Array elements are 8-bit unsigned integers (uint8_t).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the numeric value of this enum
    of(int value)
    Create a new TypedArrayType for the provided value
    of(MemorySegment address)
    Create a new TypedArrayType for the value in the provided memory address.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final TypedArrayType NONE
      Not a typed array, or type unsupported.
    • INT8

      public static final TypedArrayType INT8
      Array elements are 8-bit signed integers (int8_t).
    • INT16

      public static final TypedArrayType INT16
      Array elements are 16-bit signed integers (int16_t).
    • INT32

      public static final TypedArrayType INT32
      Array elements are 32-bit signed integers (int32_t).
    • INT64

      public static final TypedArrayType INT64
      Array elements are 64-bit signed integers (int64_t).
    • UINT8

      public static final TypedArrayType UINT8
      Array elements are 8-bit unsigned integers (uint8_t).
    • UINT8_CLAMPED

      public static final TypedArrayType UINT8_CLAMPED
      Array elements are 8-bit unsigned integers (uint8_t).
    • UINT16

      public static final TypedArrayType UINT16
      Array elements are 16-bit unsigned integers (uint16_t).
    • UINT32

      public static final TypedArrayType UINT32
      Array elements are 32-bit unsigned integers (uint32_t).
    • UINT64

      public static final TypedArrayType UINT64
      Array elements are 64-bit unsigned integers (uint64_t).
    • FLOAT32

      public static final TypedArrayType FLOAT32
      Array elements are 32-bit floating point numbers (float).
    • FLOAT64

      public static final TypedArrayType FLOAT64
      Array elements are 64-bit floating point numbers (double).
  • Method Details

    • values

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

      public static TypedArrayType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static TypedArrayType of(int value)
      Create a new TypedArrayType for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static TypedArrayType of(MemorySegment address)
      Create a new TypedArrayType for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address