public class FloatBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeallocationMode, dirty, doubleData, elementSize, floatData, intData, isPersist, length, ref, referencing, wrappedBuffer| Constructor and Description |
|---|
FloatBuffer(ByteBuffer buffer,
int length) |
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, copyAtStride, destroy, dirty, doReadObject, dup, 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, setNioBuffer, toString, unPersist, write, writepublic 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(ByteBuffer buffer, int length)
public FloatBuffer(float[] floats,
boolean copy)
public DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffercreate in class BaseDataBufferbuf - the buffer to createpublic int getElementSize()
DataBufferprotected DataBuffer create(int length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same type as
this with the given lengthpublic DataBuffer.Type dataType()
DataBufferpublic DataBuffer create(double[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createCopyright © 2016. All Rights Reserved.