Class FMOD_STUDIO_USER_PROPERTY.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new FMOD_STUDIO_USER_PROPERTY.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_USER_PROPERTY.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

    • name

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

      public String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • intvalue

      public int intvalue()
      Returns:
      the value of the intvalue field.
    • boolvalue

      public int boolvalue()
      Returns:
      the value of the boolvalue field.
    • floatvalue

      public float floatvalue()
      Returns:
      the value of the floatvalue field.
    • stringvalue

      public @Nullable ByteBuffer stringvalue()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the stringvalue field.
    • stringvalueString

      public @Nullable String stringvalueString()
      Returns:
      the null-terminated string pointed to by the stringvalue field.
    • name

      Sets the address of the specified encoded string to the name field.
    • type

      public FMOD_STUDIO_USER_PROPERTY.Buffer type(int value)
      Sets the specified value to the type field.
    • intvalue

      public FMOD_STUDIO_USER_PROPERTY.Buffer intvalue(int value)
      Sets the specified value to the intvalue field.
    • boolvalue

      public FMOD_STUDIO_USER_PROPERTY.Buffer boolvalue(int value)
      Sets the specified value to the boolvalue field.
    • floatvalue

      public FMOD_STUDIO_USER_PROPERTY.Buffer floatvalue(float value)
      Sets the specified value to the floatvalue field.
    • stringvalue

      public FMOD_STUDIO_USER_PROPERTY.Buffer stringvalue(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the stringvalue field.