Package net.royalur.lut.store
Class LutMap
java.lang.Object
net.royalur.lut.store.LutMap
A big map of compact keys and values for a Lut.
-
Constructor Summary
ConstructorDescriptionLutMap
(int entryCount, UInt32ValueBuffer keyBuffer, FloatValueBuffer valueBuffer) -
Method Summary
Modifier and TypeMethodDescriptionbyte
getByte
(int lowerKey) double
getDouble
(int lowerKey) int
float
getFloat
(int lowerKey) int
getInt
(int lowerKey) long
getLong
(int lowerKey) short
getShort
(int lowerKey) int
indexOfKey
(int lowerKey) byte
set
(int lowerKey, byte value) double
set
(int lowerKey, double value) float
set
(int lowerKey, float value) int
set
(int lowerKey, int value) long
set
(int lowerKey, long value) short
set
(int lowerKey, short value)
-
Constructor Details
-
LutMap
-
-
Method Details
-
getEntryCount
public int getEntryCount() -
getKeyBuffer
-
getValueBuffer
-
indexOfKey
public int indexOfKey(int lowerKey) -
getLong
public long getLong(int lowerKey) -
getInt
public int getInt(int lowerKey) -
getShort
public short getShort(int lowerKey) -
getByte
public byte getByte(int lowerKey) -
getDouble
public double getDouble(int lowerKey) -
getFloat
public float getFloat(int lowerKey) -
set
public long set(int lowerKey, long value) -
set
public int set(int lowerKey, int value) -
set
public short set(int lowerKey, short value) -
set
public byte set(int lowerKey, byte value) -
set
public double set(int lowerKey, double value) -
set
public float set(int lowerKey, float value)
-