public class DoubleBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeallocationMode, dirty, doubleData, elementSize, floatData, intData, isPersist, length, ref, referencing, wrappedBuffer| Constructor and Description |
|---|
DoubleBuffer(ByteBuffer buffer,
int length) |
DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length) |
DoubleBuffer(double[] data) |
DoubleBuffer(double[] doubles,
boolean copy) |
DoubleBuffer(float[] data) |
DoubleBuffer(float[] data,
boolean copyOnOps) |
DoubleBuffer(int length) |
DoubleBuffer(int[] data) |
DoubleBuffer(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
|
void |
flush()
Flush the data buffer
|
int |
getElementSize()
The number of bytes for each individual element
|
float |
getFloat(int i)
Get element i in the buffer as a double
|
Number |
getNumber(int i)
Get element i in the buffer as a double
|
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, getComplex, getComplexDouble, getComplexFloat, getDouble, getDoublesAt, getDoublesAt, getFloatsAt, getFloatsAt, getInt, hashCode, isPersist, length, persist, put, put, put, put, read, read, references, removeReferencing, setData, setData, setData, setNioBuffer, toString, unPersist, write, writepublic DoubleBuffer(int length)
public DoubleBuffer(io.netty.buffer.ByteBuf buf,
int length)
public DoubleBuffer(double[] data)
public DoubleBuffer(int[] data)
public DoubleBuffer(int[] data,
boolean copyOnOps)
public DoubleBuffer(float[] data)
public DoubleBuffer(float[] data,
boolean copyOnOps)
public DoubleBuffer(ByteBuffer buffer, int length)
public DoubleBuffer(double[] doubles,
boolean copy)
public DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffercreate in class BaseDataBufferbuf - the buffer to createpublic DataBuffer.Type dataType()
DataBufferpublic float getFloat(int i)
DataBuffergetFloat in interface DataBuffergetFloat in class BaseDataBufferi - the element to getFloatpublic Number getNumber(int 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(int 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 BaseDataBufferpublic int getElementSize()
DataBufferCopyright © 2016. All Rights Reserved.