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

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

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

      public long instance()
      Returns:
      the value of the instance field.
    • functionname

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

      public String functionnameString()
      Returns:
      the null-terminated string pointed to by the functionname field.
    • functionparams

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

      public String functionparamsString()
      Returns:
      the null-terminated string pointed to by the functionparams field.
    • result

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

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

      public FMOD_ERRORCALLBACK_INFO.Buffer instance(long value)
      Sets the specified value to the instance field.
    • functionname

      public FMOD_ERRORCALLBACK_INFO.Buffer functionname(ByteBuffer value)
      Sets the address of the specified encoded string to the functionname field.
    • functionparams

      public FMOD_ERRORCALLBACK_INFO.Buffer functionparams(ByteBuffer value)
      Sets the address of the specified encoded string to the functionparams field.