public class FloatBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeallocationMode, constant, dirty, doubleData, elementSize, floatData, indexer, intData, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, wrappedDataBuffer| Constructor and Description |
|---|
FloatBuffer(byte[] data,
int length) |
FloatBuffer(ByteBuffer buffer,
int length) |
FloatBuffer(ByteBuffer buffer,
int length,
int offset) |
FloatBuffer(io.netty.buffer.ByteBuf buf,
int length) |
FloatBuffer(io.netty.buffer.ByteBuf buf,
int length,
int offset) |
FloatBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
FloatBuffer(double[] data) |
FloatBuffer(double[] data,
boolean copyOnOps) |
FloatBuffer(double[] data,
boolean copy,
int offset) |
FloatBuffer(float[] data) |
FloatBuffer(float[] floats,
boolean copy) |
FloatBuffer(float[] data,
boolean copy,
int offset) |
FloatBuffer(int[] data) |
FloatBuffer(int[] data,
boolean copyOnOps) |
FloatBuffer(int[] data,
boolean copy,
int offset) |
FloatBuffer(int length,
int elementSize) |
FloatBuffer(int length,
int elementSize,
int offset) |
FloatBuffer(long length)
Create a float buffer with the given length
|
FloatBuffer(long length,
boolean initialize) |
| 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
|
DataBuffer |
create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
protected DataBuffer |
create(long length)
Create with length
|
IComplexDouble |
getComplexDouble(long i)
Get the complex double at the specified index
|
IComplexFloat |
getComplexFloat(long i)
Get the complex float
|
protected void |
initTypeAndSize()
Initialize the type of this buffer
|
addReferencing, address, addressPointer, allocationMode, array, asBytes, asDouble, asFloat, asInt, asNetty, asNio, asNioDouble, asNioFloat, asNioInt, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, getTrackingPoint, hashCode, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, put, put, put, put, read, read, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toString, underlyingDataBuffer, underlyingLength, unPersist, write, writepublic FloatBuffer(long length)
length - the float buffer with the given lengthpublic FloatBuffer(long length,
boolean initialize)
public FloatBuffer(int length,
int elementSize)
public FloatBuffer(int length,
int elementSize,
int offset)
public FloatBuffer(DataBuffer underlyingBuffer, long length, long offset)
public FloatBuffer(io.netty.buffer.ByteBuf buf,
int length)
public FloatBuffer(io.netty.buffer.ByteBuf buf,
int length,
int offset)
public FloatBuffer(float[] data)
public FloatBuffer(int[] data)
public FloatBuffer(double[] data)
public FloatBuffer(int[] data,
boolean copyOnOps)
public FloatBuffer(int[] data,
boolean copy,
int offset)
public FloatBuffer(double[] data,
boolean copyOnOps)
public FloatBuffer(double[] data,
boolean copy,
int offset)
public FloatBuffer(ByteBuffer buffer, int length)
public FloatBuffer(ByteBuffer buffer, int length, int offset)
public FloatBuffer(byte[] data,
int length)
public FloatBuffer(float[] floats,
boolean copy)
public FloatBuffer(float[] data,
boolean copy,
int offset)
protected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferpublic DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffercreate in class BaseDataBufferbuf - the buffer to createpublic IComplexFloat getComplexFloat(long i)
DataBuffergetComplexFloat in interface DataBuffergetComplexFloat in class BaseDataBufferi - the i togetepublic IComplexDouble getComplexDouble(long i)
DataBuffergetComplexDouble in interface DataBuffergetComplexDouble in class BaseDataBufferi - the indexprotected DataBuffer create(long length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same type as
this with the given lengthpublic 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.