Class DynamicBuffer


  • public class DynamicBuffer
    extends java.lang.Object
    A float buffer that can dynamically change it's capacity.
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicBuffer()
      Constructs a new instance of DynamicBuffer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.FloatBuffer getBuffer()
      Returns a FloatBuffer that contains all the data.
      int getLength()
      Returns the buffer size.
      DynamicBuffer put​(float f)
      Writes the given float into this buffer at the current position.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicBuffer

        public DynamicBuffer()
        Constructs a new instance of DynamicBuffer.
    • Method Detail

      • put

        public DynamicBuffer put​(float f)
        Writes the given float into this buffer at the current position.
        Parameters:
        f - the float to be written
        Returns:
        this buffer
      • getBuffer

        public java.nio.FloatBuffer getBuffer()
        Returns a FloatBuffer that contains all the data.
        Returns:
        a FloatBuffer
      • getLength

        public int getLength()
        Returns the buffer size.
        Returns:
        the buffer size