public class LongBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeExallocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, trackingPoint, type, underlyingLength, wrappedDataBuffer| Constructor and Description |
|---|
LongBuffer(byte[] data,
int length) |
LongBuffer(ByteBuffer buffer,
int length) |
LongBuffer(ByteBuffer buffer,
int length,
long offset) |
LongBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
LongBuffer(double[] data) |
LongBuffer(double[] data,
boolean copy) |
LongBuffer(double[] data,
boolean copy,
long offset) |
LongBuffer(float[] data) |
LongBuffer(float[] data,
boolean copy) |
LongBuffer(float[] data,
boolean copy,
long offset) |
LongBuffer(int[] data) |
LongBuffer(int[] data,
boolean copy) |
LongBuffer(int[] data,
boolean copy,
long offset) |
LongBuffer(int[] ints,
boolean copy,
MemoryWorkspace workspace) |
LongBuffer(int length,
int elementSize) |
LongBuffer(int length,
int elementSize,
long offset) |
LongBuffer(long length) |
LongBuffer(long length,
boolean initialize) |
LongBuffer(long length,
boolean initialize,
MemoryWorkspace workspace) |
LongBuffer(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
|
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, asNio, asNioDouble, asNioFloat, asNioInt, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, capacity, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, fromFloat, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getLong, getNumber, 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, setIndexer, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wrappedBuffer, write, writepublic LongBuffer(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 LongBuffer(long length)
public LongBuffer(long length,
boolean initialize)
public LongBuffer(long length,
boolean initialize,
MemoryWorkspace workspace)
public LongBuffer(int[] ints,
boolean copy,
MemoryWorkspace workspace)
public LongBuffer(ByteBuffer buffer, int length, long offset)
public LongBuffer(byte[] data,
int length)
public LongBuffer(double[] data,
boolean copy)
public LongBuffer(double[] data,
boolean copy,
long offset)
public LongBuffer(float[] data,
boolean copy)
public LongBuffer(float[] data,
boolean copy,
long offset)
public LongBuffer(int[] data,
boolean copy,
long offset)
public LongBuffer(int length,
int elementSize)
public LongBuffer(int length,
int elementSize,
long offset)
public LongBuffer(DataBuffer underlyingBuffer, long length, long offset)
public LongBuffer(ByteBuffer buffer, int length)
public LongBuffer(int[] data)
public LongBuffer(double[] data)
public LongBuffer(float[] data)
public LongBuffer(int[] data,
boolean copy)
protected 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 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 void initTypeAndSize()
initTypeAndSize in class BaseDataBufferCopyright © 2017. All rights reserved.