public interface DataBufferFactory
Modifier and Type | Method and Description |
---|---|
DataBuffer.AllocationMode |
allocationMode()
Allocation mode for the data buffer
|
DataBuffer |
create(ByteBuffer underlyingBuffer,
DataType type,
long length,
long offset)
Creates a DataBuffer from java.nio.ByteBuffer
|
DataBuffer |
create(DataBuffer underlyingBuffer,
long offset,
long length)
Create a databuffer wrapping another one
this allows you to create a view of a buffer
with a different offset and length
backed by the same storage
|
DataBuffer |
create(DataType dataType,
long length,
boolean initialize) |
DataBuffer |
create(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
create(org.bytedeco.javacpp.DoublePointer doublePointer,
long length) |
DataBuffer |
create(org.bytedeco.javacpp.FloatPointer floatPointer,
long length) |
DataBuffer |
create(org.bytedeco.javacpp.IntPointer intPointer,
long length) |
DataBuffer |
create(org.bytedeco.javacpp.Pointer pointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer opType,
and length of the buffer
|
DataBuffer |
create(org.bytedeco.javacpp.Pointer pointer,
org.bytedeco.javacpp.Pointer specialPointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer) |
DataBuffer |
createBFloat16(long length) |
DataBuffer |
createBFloat16(long length,
boolean initialize) |
DataBuffer |
createBFloat16(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createBool(long length) |
DataBuffer |
createBool(long length,
boolean initialize) |
DataBuffer |
createBool(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createByte(long length) |
DataBuffer |
createByte(long length,
boolean initialize) |
DataBuffer |
createByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createDouble(double[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(double[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(double[] data,
boolean copy,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
createDouble(double[] data,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
createDouble(float[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(float[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(int[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(long length)
Create a double data buffer
|
DataBuffer |
createDouble(long[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(long length,
boolean initialize)
Create a double data buffer, with optional initialization
|
DataBuffer |
createDouble(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createDouble(long offset,
byte[] data,
int length)
Create a double buffer
|
DataBuffer |
createDouble(long offset,
double[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(long offset,
double[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(long offset,
double[] data,
MemoryWorkspace workspace) |
DataBuffer |
createDouble(long offset,
float[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(long offset,
float[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(long offset,
int length)
Create a double data buffer
|
DataBuffer |
createDouble(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createFloat(double[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(double[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(float[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(float[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
createFloat(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
createFloat(int[] data)
Creates a double data buffer
|
DataBuffer |
createFloat(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createFloat(long length)
Create a float data buffer
|
DataBuffer |
createFloat(long[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(long length,
boolean initialize)
Create a float data buffer, with optional initialization
|
DataBuffer |
createFloat(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createFloat(long offset,
byte[] data,
int length)
Create a double buffer
|
DataBuffer |
createFloat(long offset,
double[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(long offset,
double[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(long offset,
float[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(long offset,
float[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
createFloat(long offset,
int length)
Create a float data buffer
|
DataBuffer |
createFloat(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createFloat(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createHalf(double[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(double[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(float[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(float[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
createHalf(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
createHalf(int[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long length)
Creates half-precision data buffer
|
DataBuffer |
createHalf(long length,
boolean initialize)
Creates half-precision data buffer
|
DataBuffer |
createHalf(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createHalf(long offset,
byte[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
double[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
double[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
float[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
float[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
createHalf(long offset,
int length)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
int[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(long offset,
int[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createInt(double[] data)
Creates an int data buffer
|
DataBuffer |
createInt(double[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(float[] data)
Creates an int data buffer
|
DataBuffer |
createInt(float[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(int[] data)
Creates a double data buffer
|
DataBuffer |
createInt(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createInt(int[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
createInt(int[] data,
MemoryWorkspace workspace) |
DataBuffer |
createInt(long length)
Create an int data buffer
|
DataBuffer |
createInt(long[] data,
boolean copy)
Creates a int data buffer
|
DataBuffer |
createInt(long length,
boolean initialize)
Create an int data buffer, with optional initialization
|
DataBuffer |
createInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createInt(long offset,
double[] data)
Creates an int data buffer
|
DataBuffer |
createInt(long offset,
double[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(long offset,
float[] data)
Creates an int data buffer
|
DataBuffer |
createInt(long offset,
float[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(long offset,
int length)
Create an int data buffer
|
DataBuffer |
createInt(long offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createInt(long offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createLong(int[] data,
boolean copy)
Creates a long data buffer
|
DataBuffer |
createLong(long length) |
DataBuffer |
createLong(long[] data) |
DataBuffer |
createLong(long[] data,
boolean copy) |
DataBuffer |
createLong(long[] data,
MemoryWorkspace workspace) |
DataBuffer |
createLong(long length,
boolean initialize)
Create an int data buffer, with optional initialization
|
DataBuffer |
createLong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createSame(DataBuffer buffer,
boolean init)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
createSame(DataBuffer buffer,
boolean init,
MemoryWorkspace workspace)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
createShort(long length) |
DataBuffer |
createShort(long length,
boolean initialize) |
DataBuffer |
createShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createUByte(long length) |
DataBuffer |
createUByte(long length,
boolean initialize) |
DataBuffer |
createUByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createUInt(long length) |
DataBuffer |
createUInt(long length,
boolean initialize) |
DataBuffer |
createUInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createULong(long length) |
DataBuffer |
createULong(long length,
boolean initialize) |
DataBuffer |
createULong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createUShort(long length) |
DataBuffer |
createUShort(long length,
boolean initialize) |
DataBuffer |
createUShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
createUtf8Buffer(byte[] data,
long product) |
Class<? extends DataBuffer> |
doubleBufferClass() |
Class<? extends DataBuffer> |
floatBufferClass() |
Class<? extends DataBuffer> |
halfBufferClass() |
Class<? extends DataBuffer> |
intBufferClass() |
Class<? extends DataBuffer> |
longBufferClass() |
void |
setAllocationMode(DataBuffer.AllocationMode allocationMode)
Setter for the allocation mode
|
void setAllocationMode(DataBuffer.AllocationMode allocationMode)
allocationMode
- DataBuffer.AllocationMode allocationMode()
DataBuffer create(DataBuffer underlyingBuffer, long offset, long length)
underlyingBuffer
- the underlying buffer to get the storage fromoffset
- the offset to view the data aslength
- the length of the bufferDataBuffer create(ByteBuffer underlyingBuffer, DataType type, long length, long offset)
underlyingBuffer
- offset
- length
- DataBuffer createDouble(long offset, int length)
DataBuffer createSame(DataBuffer buffer, boolean init)
buffer
- DataBuffer createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)
buffer
- DataBuffer createFloat(long offset, int length)
length
- the length of the bufferDataBuffer createInt(long offset, int length)
length
- the length of the data bufferDataBuffer createDouble(long offset, int[] data)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, int[] data)
data
- the data to create the buffer fromDataBuffer createInt(long offset, int[] data)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, double[] data)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, double[] data, MemoryWorkspace workspace)
DataBuffer createDouble(long offset, byte[] data, int length)
data
- length
- DataBuffer createFloat(long offset, byte[] data, int length)
data
- length
- DataBuffer createFloat(long offset, double[] data)
data
- the data to create the buffer fromDataBuffer createInt(long offset, double[] data)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, float[] data)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, float[] data)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, float[] data, MemoryWorkspace workspace)
DataBuffer createInt(long offset, float[] data)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(long offset, int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(long offset, double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(long offset, float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(long offset, float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(long offset, float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(long length)
DataBuffer createDouble(long length, boolean initialize)
initialize
- If true: initialize the buffer. If false: don't initialize.DataBuffer createDouble(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createFloat(long length)
length
- the length of the bufferDataBuffer createFloat(long length, boolean initialize)
length
- the length of the bufferinitialize
- If true: initialize the buffer. If false: don't initialize.DataBuffer createFloat(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer create(DataType dataType, long length, boolean initialize)
DataBuffer create(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createInt(long length)
length
- the length of the data bufferDataBuffer createBFloat16(long length)
DataBuffer createByte(long length)
DataBuffer createShort(long length)
DataBuffer createBool(long length)
DataBuffer createUShort(long length)
DataBuffer createUInt(long length)
DataBuffer createUByte(long length)
DataBuffer createULong(long length)
DataBuffer createBFloat16(long length, boolean initialize)
DataBuffer createByte(long length, boolean initialize)
DataBuffer createShort(long length, boolean initialize)
DataBuffer createBool(long length, boolean initialize)
DataBuffer createUShort(long length, boolean initialize)
DataBuffer createUInt(long length, boolean initialize)
DataBuffer createUByte(long length, boolean initialize)
DataBuffer createULong(long length, boolean initialize)
DataBuffer createBFloat16(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createByte(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createShort(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createBool(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createUShort(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createUInt(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createUByte(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createULong(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createInt(long length, boolean initialize)
length
- the length of the data bufferinitialize
- If true: initialize the buffer. If false: don't initialize.DataBuffer createInt(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createLong(long[] data)
DataBuffer createLong(long[] data, boolean copy)
DataBuffer createLong(long length)
DataBuffer createLong(long length, boolean initialize)
length
- the length of the data bufferinitialize
- If true: initialize the buffer. If false: don't initialize.DataBuffer createLong(long[] data, MemoryWorkspace workspace)
DataBuffer createLong(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createDouble(int[] data)
data
- the data to create the buffer fromDataBuffer createFloat(int[] data)
data
- the data to create the buffer fromDataBuffer createInt(int[] data)
data
- the data to create the buffer fromDataBuffer createInt(int[] data, MemoryWorkspace workspace)
DataBuffer createInt(int[] data, boolean copy, MemoryWorkspace workspace)
DataBuffer createDouble(double[] data)
data
- the data to create the buffer fromDataBuffer createFloat(double[] data)
data
- the data to create the buffer fromDataBuffer createInt(double[] data)
data
- the data to create the buffer fromDataBuffer createDouble(float[] data)
data
- the data to create the buffer fromDataBuffer createFloat(float[] data)
data
- the data to create the buffer fromDataBuffer createFloat(float[] data, MemoryWorkspace workspace)
DataBuffer createInt(float[] data)
data
- the data to create the buffer fromDataBuffer createDouble(int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createLong(int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(long[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(long[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(long[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(double[] data, MemoryWorkspace workspace)
data
- the data to create the buffer fromDataBuffer createDouble(double[] data, boolean copy, MemoryWorkspace workspace)
data
- the data to create the buffer fromDataBuffer createFloat(double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createInt(double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createDouble(float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createFloat(float[] data, boolean copy, MemoryWorkspace workspace)
DataBuffer createInt(float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer create(org.bytedeco.javacpp.Pointer pointer, DataType type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)
pointer
- the pointer to usetype
- the opType of bufferlength
- the length of the bufferindexer
- DataBuffer create(org.bytedeco.javacpp.Pointer pointer, org.bytedeco.javacpp.Pointer specialPointer, DataType type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)
DataBuffer create(org.bytedeco.javacpp.DoublePointer doublePointer, long length)
doublePointer
- length
- DataBuffer create(org.bytedeco.javacpp.IntPointer intPointer, long length)
intPointer
- length
- DataBuffer create(org.bytedeco.javacpp.FloatPointer floatPointer, long length)
floatPointer
- length
- DataBuffer createHalf(long length)
length
- length of new data bufferDataBuffer createHalf(long length, boolean initialize)
length
- length of new data bufferinitialize
- true if memset should be used on allocated memory, false otherwiseDataBuffer createHalf(long length, boolean initialize, MemoryWorkspace workspace)
DataBuffer createHalf(float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(float[] data, MemoryWorkspace workspace)
DataBuffer createHalf(float[] data, boolean copy, MemoryWorkspace workspace)
DataBuffer createHalf(double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, double[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, float[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, double[] data)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, float[] data)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, float[] data, MemoryWorkspace workspace)
DataBuffer createHalf(long offset, int[] data)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, byte[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(int[] data, boolean copy)
data
- the data to create the buffer fromDataBuffer createHalf(float[] data)
data
- the data to create the buffer fromDataBuffer createHalf(double[] data)
data
- the data to create the buffer fromDataBuffer createHalf(int[] data)
data
- the data to create the buffer fromDataBuffer createHalf(long offset, int length)
Class<? extends DataBuffer> intBufferClass()
Class<? extends DataBuffer> longBufferClass()
Class<? extends DataBuffer> halfBufferClass()
Class<? extends DataBuffer> floatBufferClass()
Class<? extends DataBuffer> doubleBufferClass()
DataBuffer createUtf8Buffer(byte[] data, long product)
Copyright © 2020. All rights reserved.