Class FMOD_ERRORCALLBACK_INFO.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new FMOD_ERRORCALLBACK_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_ERRORCALLBACK_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

    • result

      @NativeType("FMOD_RESULT") public int result()
      Returns:
      the value of the result field.
    • instancetype

      @NativeType("FMOD_ERRORCALLBACK_INSTANCETYPE") public int instancetype()
      Returns:
      the value of the instancetype field.
    • instance

      @NativeType("void *") public long instance()
      Returns:
      the value of the instance field.
    • functionname

      @NativeType("char const *") public ByteBuffer functionname()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the functionname field.
    • functionnameString

      @NativeType("char const *") public String functionnameString()
      Returns:
      the null-terminated string pointed to by the functionname field.
    • functionparams

      @NativeType("char const *") public ByteBuffer functionparams()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the functionparams field.
    • functionparamsString

      @NativeType("char const *") public String functionparamsString()
      Returns:
      the null-terminated string pointed to by the functionparams field.
    • result

      public FMOD_ERRORCALLBACK_INFO.Buffer result(@NativeType("FMOD_RESULT") int value)
      Sets the specified value to the result field.
    • instancetype

      public FMOD_ERRORCALLBACK_INFO.Buffer instancetype(@NativeType("FMOD_ERRORCALLBACK_INSTANCETYPE") int value)
      Sets the specified value to the instancetype field.
    • instance

      public FMOD_ERRORCALLBACK_INFO.Buffer instance(@NativeType("void *") long value)
      Sets the specified value to the instance field.
    • functionname

      public FMOD_ERRORCALLBACK_INFO.Buffer functionname(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the functionname field.
    • functionparams

      public FMOD_ERRORCALLBACK_INFO.Buffer functionparams(@NativeType("char const *") ByteBuffer value)
      Sets the address of the specified encoded string to the functionparams field.