Class FMOD_STUDIO_COMMAND_INFO.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<FMOD_STUDIO_COMMAND_INFO>, NativeResource, Pointer
Enclosing class:
FMOD_STUDIO_COMMAND_INFO

public static class FMOD_STUDIO_COMMAND_INFO.Buffer extends StructBuffer<FMOD_STUDIO_COMMAND_INFO,FMOD_STUDIO_COMMAND_INFO.Buffer> implements NativeResource
An array of FMOD_STUDIO_COMMAND_INFO structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new FMOD_STUDIO_COMMAND_INFO.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by FMOD_STUDIO_COMMAND_INFO.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • commandname

      public ByteBuffer commandname()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the commandname field.
    • commandnameString

      public String commandnameString()
      Returns:
      the null-terminated string pointed to by the commandname field.
    • parentcommandindex

      public int parentcommandindex()
      Returns:
      the value of the parentcommandindex field.
    • framenumber

      public int framenumber()
      Returns:
      the value of the framenumber field.
    • frametime

      public float frametime()
      Returns:
      the value of the frametime field.
    • instancetype

      public int instancetype()
      Returns:
      the value of the instancetype field.
    • outputtype

      public int outputtype()
      Returns:
      the value of the outputtype field.
    • instancehandle

      public int instancehandle()
      Returns:
      the value of the instancehandle field.
    • outputhandle

      public int outputhandle()
      Returns:
      the value of the outputhandle field.
    • commandname

      public FMOD_STUDIO_COMMAND_INFO.Buffer commandname(ByteBuffer value)
      Sets the address of the specified encoded string to the commandname field.
    • parentcommandindex

      public FMOD_STUDIO_COMMAND_INFO.Buffer parentcommandindex(int value)
      Sets the specified value to the parentcommandindex field.
    • framenumber

      public FMOD_STUDIO_COMMAND_INFO.Buffer framenumber(int value)
      Sets the specified value to the framenumber field.
    • frametime

      public FMOD_STUDIO_COMMAND_INFO.Buffer frametime(float value)
      Sets the specified value to the frametime field.
    • instancetype

      public FMOD_STUDIO_COMMAND_INFO.Buffer instancetype(int value)
      Sets the specified value to the instancetype field.
    • outputtype

      public FMOD_STUDIO_COMMAND_INFO.Buffer outputtype(int value)
      Sets the specified value to the outputtype field.
    • instancehandle

      public FMOD_STUDIO_COMMAND_INFO.Buffer instancehandle(int value)
      Sets the specified value to the instancehandle field.
    • outputhandle

      public FMOD_STUDIO_COMMAND_INFO.Buffer outputhandle(int value)
      Sets the specified value to the outputhandle field.