Class FSBANK_SUBSOUND.Buffer

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

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

    • Buffer

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

    • fileNames

      public PointerBuffer fileNames()
      Returns:
      a PointerBuffer view of the data pointed to by the fileNames field.
    • fileData

      public PointerBuffer fileData()
      Returns:
      a PointerBuffer view of the data pointed to by the fileData field.
    • fileDataLengths

      public IntBuffer fileDataLengths()
      Returns:
      a IntBuffer view of the data pointed to by the fileDataLengths field.
    • numFiles

      public int numFiles()
      Returns:
      the value of the numFiles field.
    • overrideFlags

      public int overrideFlags()
      Returns:
      the value of the overrideFlags field.
    • overrideQuality

      public int overrideQuality()
      Returns:
      the value of the overrideQuality field.
    • desiredSampleRate

      public float desiredSampleRate()
      Returns:
      the value of the desiredSampleRate field.
    • percentOptimizedRate

      public float percentOptimizedRate()
      Returns:
      the value of the percentOptimizedRate field.
    • fileNames

      public FSBANK_SUBSOUND.Buffer fileNames(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the fileNames field.
    • fileData

      public FSBANK_SUBSOUND.Buffer fileData(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the fileData field.
    • fileDataLengths

      public FSBANK_SUBSOUND.Buffer fileDataLengths(IntBuffer value)
      Sets the address of the specified IntBuffer to the fileDataLengths field.
    • numFiles

      public FSBANK_SUBSOUND.Buffer numFiles(int value)
      Sets the specified value to the numFiles field.
    • overrideFlags

      public FSBANK_SUBSOUND.Buffer overrideFlags(int value)
      Sets the specified value to the overrideFlags field.
    • overrideQuality

      public FSBANK_SUBSOUND.Buffer overrideQuality(int value)
      Sets the specified value to the overrideQuality field.
    • desiredSampleRate

      public FSBANK_SUBSOUND.Buffer desiredSampleRate(float value)
      Sets the specified value to the desiredSampleRate field.
    • percentOptimizedRate

      public FSBANK_SUBSOUND.Buffer percentOptimizedRate(float value)
      Sets the specified value to the percentOptimizedRate field.