Class FSBANK_STATEDATA_WARNING

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

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

Layout


 struct FSBANK_STATEDATA_WARNING {
     FSBANK_RESULT warnCode;
     char warningString[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.
    • WARNCODE

      public static final int WARNCODE
      The struct member offsets.
    • WARNINGSTRING

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

    • FSBANK_STATEDATA_WARNING

      public FSBANK_STATEDATA_WARNING(ByteBuffer container)
      Creates a FSBANK_STATEDATA_WARNING 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_WARNING>
    • warnCode

      public int warnCode()
      Returns:
      the value of the warnCode field.
    • warningString

      public ByteBuffer warningString()
      Returns:
      a ByteBuffer view of the warningString field.
    • warningStringString

      public String warningStringString()
      Returns:
      the null-terminated string stored in the warningString field.
    • warnCode

      public FSBANK_STATEDATA_WARNING warnCode(int value)
      Sets the specified value to the warnCode field.
    • warningString

      public FSBANK_STATEDATA_WARNING warningString(ByteBuffer value)
      Copies the specified encoded string to the warningString field.
    • set

      public FSBANK_STATEDATA_WARNING set(int warnCode, ByteBuffer warningString)
      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_WARNING malloc()
      Returns a new FSBANK_STATEDATA_WARNING instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static FSBANK_STATEDATA_WARNING calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_WARNING 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_WARNING.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_WARNING.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FSBANK_STATEDATA_WARNING.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FSBANK_STATEDATA_WARNING.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
    • nwarnCode

      public static int nwarnCode(long struct)
      Unsafe version of warnCode().
    • nwarningString

      public static ByteBuffer nwarningString(long struct)
      Unsafe version of warningString().
    • nwarningStringString

      public static String nwarningStringString(long struct)
      Unsafe version of warningStringString().
    • nwarnCode

      public static void nwarnCode(long struct, int value)
      Unsafe version of warnCode.
    • nwarningString

      public static void nwarningString(long struct, ByteBuffer value)
      Unsafe version of warningString.