Package net.royalur.lut.buffer
Class Float32ValueBuffer
java.lang.Object
net.royalur.lut.buffer.ValueBuffer
net.royalur.lut.buffer.FloatValueBuffer
net.royalur.lut.buffer.Float32ValueBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDouble(int index) floatgetFloat(int index) voidmoveIntoPlace(int index, int targetIndex) Moves the value to targetIndex, and shifts all values in between.voidreadContents(DataSource input, int startIndex, int endIndex) doubleset(int index, double value) floatset(int index, float value) voidwriteContents(DataSink output, int startIndex, int endIndex) Methods inherited from class net.royalur.lut.buffer.FloatValueBuffer
getByte, getInt, getLong, getShort, set, set, set, setMethods inherited from class net.royalur.lut.buffer.ValueBuffer
convertTo, getCapacity, getType, readContents, writeContents
-
Constructor Details
-
Float32ValueBuffer
public Float32ValueBuffer(int capacity)
-
-
Method Details
-
set
public double set(int index, double value) - Specified by:
setin classValueBuffer
-
set
public float set(int index, float value) - Specified by:
setin classValueBuffer
-
getDouble
public double getDouble(int index) - Specified by:
getDoublein classValueBuffer
-
getFloat
public float getFloat(int index) - Specified by:
getFloatin classValueBuffer
-
moveIntoPlace
public void moveIntoPlace(int index, int targetIndex) Description copied from class:ValueBufferMoves the value to targetIndex, and shifts all values in between.- Specified by:
moveIntoPlacein classValueBuffer
-
writeContents
- Specified by:
writeContentsin classValueBuffer- Throws:
IOException
-
readContents
- Specified by:
readContentsin classValueBuffer- Throws:
IOException
-