Class DynamicBuffer
java.lang.Object
ai.djl.basicdataset.tabular.utils.DynamicBuffer
A float buffer that can dynamically change it's capacity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aFloatBufferthat contains all the data.intReturns the buffer size.put(float f) Writes the given float into this buffer at the current position.
-
Constructor Details
-
DynamicBuffer
public DynamicBuffer()Constructs a new instance ofDynamicBuffer.
-
-
Method Details
-
put
Writes the given float into this buffer at the current position.- Parameters:
f- the float to be written- Returns:
- this buffer
-
getBuffer
Returns aFloatBufferthat contains all the data.- Returns:
- a
FloatBuffer
-
getLength
public int getLength()Returns the buffer size.- Returns:
- the buffer size
-