public class DoubleBuffer 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 |
|---|
DoubleBuffer(byte[] data,
int length) |
DoubleBuffer(ByteBuffer buffer,
int length) |
DoubleBuffer(ByteBuffer buffer,
int length,
int offset) |
DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length) |
DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length,
int offset) |
DoubleBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
DoubleBuffer(double[] data) |
DoubleBuffer(double[] doubles,
boolean copy) |
DoubleBuffer(double[] data,
boolean copy,
int offset) |
DoubleBuffer(float[] data) |
DoubleBuffer(float[] data,
boolean copyOnOps) |
DoubleBuffer(float[] data,
boolean copy,
int offset) |
DoubleBuffer(int[] data) |
DoubleBuffer(int[] data,
boolean copyOnOps) |
DoubleBuffer(int[] data,
boolean copy,
int offset) |
DoubleBuffer(int length,
int elementSize) |
DoubleBuffer(int length,
int elementSize,
int offset) |
DoubleBuffer(long length) |
DoubleBuffer(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
|
void |
flush()
Flush the data buffer
|
IComplexDouble |
getComplexDouble(long i)
Get the complex double at the specified index
|
IComplexFloat |
getComplexFloat(long i)
Get the complex float
|
float |
getFloat(long i)
Get element i in the buffer as a double
|
Number |
getNumber(long i)
Get element i in the buffer as a double
|
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, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloatsAt, getFloatsAt, getInt, 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 DoubleBuffer(long length)
public DoubleBuffer(long length,
boolean initialize)
public DoubleBuffer(int length,
int elementSize)
public DoubleBuffer(int length,
int elementSize,
int offset)
public DoubleBuffer(DataBuffer underlyingBuffer, long length, long offset)
public DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length)
public DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length,
int offset)
public DoubleBuffer(double[] data)
public DoubleBuffer(int[] data)
public DoubleBuffer(int[] data,
boolean copyOnOps)
public DoubleBuffer(int[] data,
boolean copy,
int offset)
public DoubleBuffer(float[] data)
public DoubleBuffer(float[] data,
boolean copyOnOps)
public DoubleBuffer(float[] data,
boolean copy,
int offset)
public DoubleBuffer(ByteBuffer buffer, int length)
public DoubleBuffer(ByteBuffer buffer, int length, int offset)
public DoubleBuffer(byte[] data,
int length)
public DoubleBuffer(double[] doubles,
boolean copy)
public DoubleBuffer(double[] data,
boolean copy,
int offset)
public 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 indexpublic float getFloat(long i)
DataBuffergetFloat in interface DataBuffergetFloat in class BaseDataBufferi - the element to getFloatpublic Number getNumber(long i)
DataBuffergetNumber in interface DataBuffergetNumber in class BaseDataBufferi - the element to getFloatpublic 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 createprotected DataBuffer create(long length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same type as
this with the given lengthpublic void flush()
DataBufferflush in interface DataBufferflush in class BaseDataBufferprotected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferCopyright © 2016. All Rights Reserved.