Class AIVectorKey.Buffer

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

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

    • Buffer

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

    • mTime

      public double mTime()
      Returns:
      the value of the mTime field.
    • mValue

      public AIVector3D mValue()
      Returns:
      a AIVector3D view of the mValue field.
    • mInterpolation

      public int mInterpolation()
      Returns:
      the value of the mInterpolation field.
    • mTime

      public AIVectorKey.Buffer mTime(double value)
      Sets the specified value to the mTime field.
    • mValue

      public AIVectorKey.Buffer mValue(AIVector3D value)
      Copies the specified AIVector3D to the mValue field.
    • mValue

      public AIVectorKey.Buffer mValue(Consumer<AIVector3D> consumer)
      Passes the mValue field to the specified Consumer.
    • mInterpolation

      public AIVectorKey.Buffer mInterpolation(int value)
      Sets the specified value to the mInterpolation field.