public class FloatBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type
allocationMode, dataBuffer, doubleData, elementSize, floatData, intData, isPersist, length, ref, referencing
Constructor and Description |
---|
FloatBuffer(io.netty.buffer.ByteBuf buf,
int length) |
FloatBuffer(double[] data) |
FloatBuffer(double[] data,
boolean copyOnOps) |
FloatBuffer(float[] data) |
FloatBuffer(float[] floats,
boolean copy) |
FloatBuffer(int length)
Create a float buffer with the given length
|
FloatBuffer(int[] data) |
FloatBuffer(int[] data,
boolean copyOnOps) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
create(io.netty.buffer.ByteBuf buf,
int length)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(double[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(float[] data)
Create the data buffer
with respect to the given byte buffer
|
protected DataBuffer |
create(int length)
Create with length
|
DataBuffer |
create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer.Type |
dataType()
The data type of the buffer
|
int |
getElementSize()
The number of bytes for each individual element
|
addReferencing, allocationMode, array, asBytes, asDouble, asFloat, asInt, asNetty, asNio, asNioDouble, asNioFloat, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, destroy, doReadObject, dup, ensureWritable, equals, flush, getComplex, getComplexDouble, getComplexFloat, getDouble, getDoublesAt, getDoublesAt, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, hashCode, isPersist, length, persist, put, put, put, put, read, read, references, removeReferencing, setData, setData, setData, toString, unPersist, write, write
public FloatBuffer(int length)
length
- the float buffer with the given lengthpublic FloatBuffer(io.netty.buffer.ByteBuf buf, int length)
public FloatBuffer(float[] data)
public FloatBuffer(int[] data)
public FloatBuffer(double[] data)
public FloatBuffer(int[] data, boolean copyOnOps)
public FloatBuffer(double[] data, boolean copyOnOps)
public FloatBuffer(float[] floats, boolean copy)
public DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffer
create
in class BaseDataBuffer
buf
- the buffer to createpublic int getElementSize()
DataBuffer
protected DataBuffer create(int length)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same type as
this with the given lengthpublic DataBuffer.Type dataType()
DataBuffer
public DataBuffer create(double[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createCopyright © 2015. All Rights Reserved.