Class FSBANK_STATEDATA_FAILED

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<FSBANK_STATEDATA_FAILED>
org.lwjgl.fmod.FSBANK_STATEDATA_FAILED
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class FSBANK_STATEDATA_FAILED extends org.lwjgl.system.Struct<FSBANK_STATEDATA_FAILED> implements org.lwjgl.system.NativeResource

Layout


 struct FSBANK_STATEDATA_FAILED {
     FSBANK_RESULT errorCode;
     char errorString[256];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • ERRORCODE

      public static final int ERRORCODE
      The struct member offsets.
    • ERRORSTRING

      public static final int ERRORSTRING
      The struct member offsets.
  • Constructor Details

    • FSBANK_STATEDATA_FAILED

      public FSBANK_STATEDATA_FAILED(ByteBuffer container)
      Creates a FSBANK_STATEDATA_FAILED instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<FSBANK_STATEDATA_FAILED>
    • errorCode

      public int errorCode()
      Returns:
      the value of the errorCode field.
    • errorString

      public ByteBuffer errorString()
      Returns:
      a ByteBuffer view of the errorString field.
    • errorStringString

      public String errorStringString()
      Returns:
      the null-terminated string stored in the errorString field.
    • errorCode

      public FSBANK_STATEDATA_FAILED errorCode(int value)
      Sets the specified value to the errorCode field.
    • errorString

      public FSBANK_STATEDATA_FAILED errorString(ByteBuffer value)
      Copies the specified encoded string to the errorString field.
    • set

      public FSBANK_STATEDATA_FAILED set(int errorCode, ByteBuffer errorString)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static FSBANK_STATEDATA_FAILED malloc()
      Returns a new FSBANK_STATEDATA_FAILED instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FSBANK_STATEDATA_FAILED calloc()
      Returns a new FSBANK_STATEDATA_FAILED instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FSBANK_STATEDATA_FAILED create()
      Returns a new FSBANK_STATEDATA_FAILED instance allocated with BufferUtils.
    • create

      public static FSBANK_STATEDATA_FAILED create(long address)
      Returns a new FSBANK_STATEDATA_FAILED instance for the specified memory address.
    • createSafe

      public static @Nullable FSBANK_STATEDATA_FAILED createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static FSBANK_STATEDATA_FAILED.Buffer malloc(int capacity)
      Returns a new FSBANK_STATEDATA_FAILED.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FSBANK_STATEDATA_FAILED.Buffer calloc(int capacity)
      Returns a new FSBANK_STATEDATA_FAILED.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FSBANK_STATEDATA_FAILED.Buffer create(int capacity)
      Returns a new FSBANK_STATEDATA_FAILED.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FSBANK_STATEDATA_FAILED.Buffer create(long address, int capacity)
      Create a FSBANK_STATEDATA_FAILED.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FSBANK_STATEDATA_FAILED.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static FSBANK_STATEDATA_FAILED malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_FAILED instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FSBANK_STATEDATA_FAILED calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_FAILED instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FSBANK_STATEDATA_FAILED.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_FAILED.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FSBANK_STATEDATA_FAILED.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_FAILED.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nerrorCode

      public static int nerrorCode(long struct)
      Unsafe version of errorCode().
    • nerrorString

      public static ByteBuffer nerrorString(long struct)
      Unsafe version of errorString().
    • nerrorStringString

      public static String nerrorStringString(long struct)
      Unsafe version of errorStringString().
    • nerrorCode

      public static void nerrorCode(long struct, int value)
      Unsafe version of errorCode.
    • nerrorString

      public static void nerrorString(long struct, ByteBuffer value)
      Unsafe version of errorString.