public class DoubleBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeEx
allocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, TO_STRING_MAX_ELEMENTS, trackingPoint, type, underlyingLength, workspaceGenerationId, wrappedDataBuffer
Constructor and Description |
---|
DoubleBuffer(byte[] data,
int length) |
DoubleBuffer(ByteBuffer buffer,
int length) |
DoubleBuffer(ByteBuffer buffer,
int length,
long offset) |
DoubleBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
DoubleBuffer(double[] data) |
DoubleBuffer(double[] doubles,
boolean copy) |
DoubleBuffer(double[] data,
boolean copy,
long offset) |
DoubleBuffer(double[] data,
boolean copy,
long offset,
MemoryWorkspace workspace) |
DoubleBuffer(double[] floats,
boolean copy,
MemoryWorkspace workspace) |
DoubleBuffer(double[] data,
MemoryWorkspace workspace) |
DoubleBuffer(float[] data) |
DoubleBuffer(float[] data,
boolean copyOnOps) |
DoubleBuffer(float[] data,
boolean copy,
long offset) |
DoubleBuffer(int[] data) |
DoubleBuffer(int[] data,
boolean copyOnOps) |
DoubleBuffer(int[] data,
boolean copy,
long offset) |
DoubleBuffer(int length,
int elementSize) |
DoubleBuffer(int length,
int elementSize,
long offset) |
DoubleBuffer(long length) |
DoubleBuffer(long length,
boolean initialize) |
DoubleBuffer(long length,
boolean initialize,
MemoryWorkspace workspace) |
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
|
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 opType of this buffer
|
addReferencing, address, addressPointer, allocationMode, array, asBytes, asDouble, asFloat, asInt, asLong, asNio, asNioDouble, asNioFloat, asNioInt, asNioLong, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, capacity, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, fromFloat, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloatsAt, getFloatsAt, getGenerationId, getInt, getIntsAt, getIntsAt, getLong, getLongsAt, getLongsAt, getParentWorkspace, getShort, getTrackingPoint, hashCode, indexer, isAttached, isConstant, isInScope, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, readContent, reallocate, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setData, setIndexer, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wrappedBuffer, write, write
public 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, long offset)
public DoubleBuffer(DataBuffer underlyingBuffer, long length, long offset)
public DoubleBuffer(long length, boolean initialize, MemoryWorkspace workspace)
public DoubleBuffer(double[] data, MemoryWorkspace workspace)
public DoubleBuffer(double[] floats, boolean copy, MemoryWorkspace workspace)
public DoubleBuffer(double[] data)
public DoubleBuffer(int[] data)
public DoubleBuffer(int[] data, boolean copyOnOps)
public DoubleBuffer(int[] data, boolean copy, long offset)
public DoubleBuffer(float[] data)
public DoubleBuffer(float[] data, boolean copyOnOps)
public DoubleBuffer(float[] data, boolean copy, long offset)
public DoubleBuffer(ByteBuffer buffer, int length)
public DoubleBuffer(ByteBuffer buffer, int length, long offset)
public DoubleBuffer(byte[] data, int length)
public DoubleBuffer(double[] doubles, boolean copy)
public DoubleBuffer(double[] data, boolean copy, long offset)
public DoubleBuffer(double[] data, boolean copy, long offset, MemoryWorkspace workspace)
public float getFloat(long i)
DataBuffer
getFloat
in interface DataBuffer
getFloat
in class BaseDataBuffer
i
- the element to getFloatpublic Number getNumber(long i)
DataBuffer
getNumber
in interface DataBuffer
getNumber
in class BaseDataBuffer
i
- the element to getFloatpublic DataBuffer create(double[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createprotected DataBuffer create(long length)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same opType as
this with the given lengthpublic void flush()
DataBuffer
flush
in interface DataBuffer
flush
in class BaseDataBuffer
protected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
Copyright © 2018. All rights reserved.