public class DoubleBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeExallocationMode, constant, dirty, elementSize, globalType, indexer, 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(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) |
DoubleBuffer(org.bytedeco.javacpp.Pointer pointer,
org.bytedeco.javacpp.indexer.Indexer indexer,
long length)
Meant for creating another view of a buffer
|
| Modifier and Type | Method and Description |
|---|---|
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, asNio, asNioDouble, asNioFloat, asNioInt, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, fromFloat, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloatsAt, getFloatsAt, getInt, getShort, getTrackingPoint, hashCode, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, readContent, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toString, underlyingDataBuffer, underlyingLength, unPersist, write, writepublic DoubleBuffer(org.bytedeco.javacpp.Pointer pointer,
org.bytedeco.javacpp.indexer.Indexer indexer,
long length)
pointer - the underlying buffer to create a view fromindexer - the indexer for the pointerlength - the length of the viewpublic 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(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 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.