Class FMOD_STUDIO_MEMORY_USAGE

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

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

Layout


 struct FMOD_STUDIO_MEMORY_USAGE {
     int exclusive;
     int inclusive;
     int sampledata;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int EXCLUSIVE
      The struct member offsets.
    • INCLUSIVE

      public static final int INCLUSIVE
      The struct member offsets.
    • SAMPLEDATA

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

    • FMOD_STUDIO_MEMORY_USAGE

      public FMOD_STUDIO_MEMORY_USAGE(ByteBuffer container)
      Creates a FMOD_STUDIO_MEMORY_USAGE 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<FMOD_STUDIO_MEMORY_USAGE>
    • exclusive

      public int exclusive()
      Returns:
      the value of the exclusive field.
    • inclusive

      public int inclusive()
      Returns:
      the value of the inclusive field.
    • sampledata

      public int sampledata()
      Returns:
      the value of the sampledata field.
    • exclusive

      public FMOD_STUDIO_MEMORY_USAGE exclusive(int value)
      Sets the specified value to the exclusive field.
    • inclusive

      public FMOD_STUDIO_MEMORY_USAGE inclusive(int value)
      Sets the specified value to the inclusive field.
    • sampledata

      public FMOD_STUDIO_MEMORY_USAGE sampledata(int value)
      Sets the specified value to the sampledata field.
    • set

      public FMOD_STUDIO_MEMORY_USAGE set(int exclusive, int inclusive, int sampledata)
      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 FMOD_STUDIO_MEMORY_USAGE malloc()
      Returns a new FMOD_STUDIO_MEMORY_USAGE instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nexclusive(long struct)
      Unsafe version of exclusive().
    • ninclusive

      public static int ninclusive(long struct)
      Unsafe version of inclusive().
    • nsampledata

      public static int nsampledata(long struct)
      Unsafe version of sampledata().
    • nexclusive

      public static void nexclusive(long struct, int value)
      Unsafe version of exclusive.
    • ninclusive

      public static void ninclusive(long struct, int value)
      Unsafe version of inclusive.
    • nsampledata

      public static void nsampledata(long struct, int value)
      Unsafe version of sampledata.