public class IntBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type
allocationMode, constant, dirty, elementSize, globalType, indexer, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, wrappedDataBuffer
Constructor and Description |
---|
IntBuffer(byte[] data,
int length) |
IntBuffer(ByteBuffer buffer,
int length) |
IntBuffer(ByteBuffer buffer,
int length,
int offset) |
IntBuffer(DataBuffer underlyingBuffer,
long length,
long offset) |
IntBuffer(double[] data) |
IntBuffer(double[] data,
boolean copy) |
IntBuffer(double[] data,
boolean copy,
int offset) |
IntBuffer(float[] data) |
IntBuffer(float[] data,
boolean copy) |
IntBuffer(float[] data,
boolean copy,
int offset) |
IntBuffer(int[] data) |
IntBuffer(int[] data,
boolean copy) |
IntBuffer(int[] data,
boolean copy,
int offset) |
IntBuffer(int length,
int elementSize) |
IntBuffer(int length,
int elementSize,
int offset) |
IntBuffer(long length) |
IntBuffer(long length,
boolean initialize) |
IntBuffer(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, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, getTrackingPoint, hashCode, indexer, isConstant, isPersist, length, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toString, underlyingDataBuffer, underlyingLength, unPersist, write, write
public IntBuffer(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 IntBuffer(long length)
public IntBuffer(long length, boolean initialize)
public IntBuffer(ByteBuffer buffer, int length, int offset)
public IntBuffer(byte[] data, int length)
public IntBuffer(double[] data, boolean copy)
public IntBuffer(double[] data, boolean copy, int offset)
public IntBuffer(float[] data, boolean copy)
public IntBuffer(float[] data, boolean copy, int offset)
public IntBuffer(int[] data, boolean copy, int offset)
public IntBuffer(int length, int elementSize)
public IntBuffer(int length, int elementSize, int offset)
public IntBuffer(DataBuffer underlyingBuffer, long length, long offset)
public IntBuffer(ByteBuffer buffer, int length)
public IntBuffer(int[] data)
public IntBuffer(double[] data)
public IntBuffer(float[] data)
public IntBuffer(int[] data, boolean copy)
protected DataBuffer create(long length)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same type as
this with the given lengthpublic 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 createpublic IComplexFloat getComplexFloat(long i)
DataBuffer
getComplexFloat
in interface DataBuffer
getComplexFloat
in class BaseDataBuffer
i
- the i togetepublic IComplexDouble getComplexDouble(long i)
DataBuffer
getComplexDouble
in interface DataBuffer
getComplexDouble
in class BaseDataBuffer
i
- the indexprotected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
Copyright © 2016. All Rights Reserved.