Class IntValueBuffer

java.lang.Object
net.royalur.lut.buffer.ValueBuffer
net.royalur.lut.buffer.IntValueBuffer
Direct Known Subclasses:
UInt16ValueBuffer, UInt32ValueBuffer, UInt64ValueBuffer, UInt8ValueBuffer

public abstract class IntValueBuffer extends ValueBuffer
Stores binary values and provides efficient methods to manipulate it.
  • Constructor Details

    • IntValueBuffer

      public IntValueBuffer(ValueType type, int capacity)
  • Method Details

    • set

      public double set(int index, double value)
      Specified by:
      set in class ValueBuffer
    • set

      public float set(int index, float value)
      Specified by:
      set in class ValueBuffer
    • getDouble

      public double getDouble(int index)
      Specified by:
      getDouble in class ValueBuffer
    • getFloat

      public float getFloat(int index)
      Specified by:
      getFloat in class ValueBuffer
    • indexOf

      public abstract int indexOf(long value, int startIndex, int endIndex)
    • indexOf

      public abstract int indexOf(int value, int startIndex, int endIndex)
    • indexOf

      public abstract int indexOf(short value, int startIndex, int endIndex)
    • indexOf

      public abstract int indexOf(byte value, int startIndex, int endIndex)
    • indexOfBinarySearch

      public abstract int indexOfBinarySearch(long value, int startIndex, int endIndex)
      Expects the buffer to be sorted in unsigned ascending order.
    • indexOfBinarySearch

      public abstract int indexOfBinarySearch(int value, int startIndex, int endIndex)
      Expects the buffer to be sorted in unsigned ascending order.
    • indexOfBinarySearch

      public abstract int indexOfBinarySearch(short value, int startIndex, int endIndex)
      Expects the buffer to be sorted in unsigned ascending order.
    • indexOfBinarySearch

      public abstract int indexOfBinarySearch(byte value, int startIndex, int endIndex)
      Expects the buffer to be sorted in unsigned ascending order.
    • moveIntoSortedPlace

      public abstract int moveIntoSortedPlace(int index)
      Returns the final index that the value was moved to.