public class DefaultDataBufferFactory extends Object implements DataBufferFactory
| Modifier and Type | Field and Description |
|---|---|
protected DataBuffer.AllocationMode |
allocationMode |
| Constructor and Description |
|---|
DefaultDataBufferFactory() |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer.AllocationMode |
allocationMode()
Allocation mode for the data buffer
|
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(org.bytedeco.javacpp.Pointer pointer,
DataBuffer.Type type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer type,
and length of the buffer
|
DataBuffer |
createDouble(byte[] data,
int length)
Create a double buffer buffer
|
DataBuffer |
createDouble(ByteBuffer buffer,
int length)
Creates a double data buffer
|
DataBuffer |
createDouble(double[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(double[] data,
boolean copy)
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(int offset,
byte[] data,
int length)
Create a double buffer buffer
|
DataBuffer |
createDouble(int offset,
ByteBuffer buffer,
int length)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
double[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
double[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
float[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
float[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
int length)
Create a double data buffer
|
DataBuffer |
createDouble(int offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createDouble(int offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createDouble(long length)
Create a double data buffer
|
DataBuffer |
createDouble(long length,
boolean initialize)
Create a double data buffer, with optional initialization
|
DataBuffer |
createFloat(byte[] data,
int length)
Create a double buffer
|
DataBuffer |
createFloat(ByteBuffer buffer,
int length)
Create a float 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(int[] data)
Creates a double data buffer
|
DataBuffer |
createFloat(int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createFloat(int offset,
byte[] data,
int length)
Create a double buffer
|
DataBuffer |
createFloat(int offset,
ByteBuffer buffer,
int length)
Create a float data buffer
|
DataBuffer |
createFloat(int offset,
double[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(int offset,
double[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(int offset,
float[] data)
Creates a float data buffer
|
DataBuffer |
createFloat(int offset,
float[] data,
boolean copy)
Creates a float data buffer
|
DataBuffer |
createFloat(int offset,
int length)
Create a float data buffer
|
DataBuffer |
createFloat(int offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createFloat(int offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createFloat(long length)
Create a float data buffer
|
DataBuffer |
createFloat(long length,
boolean initialize)
Create a float data buffer, with optional initialization
|
DataBuffer |
createHalf(byte[] data,
int length)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(ByteBuffer buffer,
int length)
Creates a half-precision 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(int[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
byte[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
byte[] data,
int length)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
double[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
double[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
float[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
float[] data,
boolean copy)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
int length)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
int[] data)
Creates a half-precision data buffer
|
DataBuffer |
createHalf(int offset,
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 |
createInt(ByteBuffer buffer,
int length)
Create int 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 offset,
ByteBuffer buffer,
int length)
Create int buffer
|
DataBuffer |
createInt(int offset,
double[] data)
Creates an int data buffer
|
DataBuffer |
createInt(int offset,
double[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(int offset,
float[] data)
Creates an int data buffer
|
DataBuffer |
createInt(int offset,
float[] data,
boolean copy)
Creates an int data buffer
|
DataBuffer |
createInt(int offset,
int length)
Create an int data buffer
|
DataBuffer |
createInt(int offset,
int[] data)
Creates a double data buffer
|
DataBuffer |
createInt(int offset,
int[] data,
boolean copy)
Creates a double data buffer
|
DataBuffer |
createInt(long length)
Create an int data buffer
|
DataBuffer |
createInt(long length,
boolean initialize)
Create an int data buffer, with optional initialization
|
void |
setAllocationMode(DataBuffer.AllocationMode allocationMode)
Setter for the allocation mode
|
protected DataBuffer.AllocationMode allocationMode
public void setAllocationMode(DataBuffer.AllocationMode allocationMode)
DataBufferFactorysetAllocationMode in interface DataBufferFactorypublic DataBuffer.AllocationMode allocationMode()
DataBufferFactoryallocationMode in interface DataBufferFactorypublic DataBuffer create(DataBuffer underlyingBuffer, long offset, long length)
DataBufferFactorycreate in interface DataBufferFactoryunderlyingBuffer - the underlying buffer to get the storage fromoffset - the offset to view the data aslength - the length of the bufferpublic DataBuffer createInt(int offset, ByteBuffer buffer, int length)
DataBufferFactorycreateInt in interface DataBufferFactorypublic DataBuffer createFloat(int offset, ByteBuffer buffer, int length)
DataBufferFactorycreateFloat in interface DataBufferFactorypublic DataBuffer createDouble(int offset, ByteBuffer buffer, int length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createDouble(int offset, int length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createFloat(int offset, int length)
DataBufferFactorycreateFloat in interface DataBufferFactorylength - the length of the bufferpublic DataBuffer createInt(int offset, int length)
DataBufferFactorycreateInt in interface DataBufferFactorylength - the length of the data bufferpublic DataBuffer createDouble(int offset, int[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int offset, int[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, int[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, double[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, byte[] data, int length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createFloat(int offset, byte[] data, int length)
DataBufferFactorycreateFloat in interface DataBufferFactorypublic DataBuffer createFloat(int offset, double[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, double[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, float[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int offset, float[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, float[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, int[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int offset, int[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, int[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, double[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int offset, double[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, double[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int offset, float[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int offset, float[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int offset, float[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(ByteBuffer buffer, int length)
DataBufferFactorycreateInt in interface DataBufferFactorypublic DataBuffer createFloat(ByteBuffer buffer, int length)
DataBufferFactorycreateFloat in interface DataBufferFactorypublic DataBuffer createDouble(ByteBuffer buffer, int length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createDouble(long length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createDouble(long length, boolean initialize)
DataBufferFactorycreateDouble in interface DataBufferFactoryinitialize - If true: initialize the buffer. If false: don't initialize.public DataBuffer createFloat(long length)
DataBufferFactorycreateFloat in interface DataBufferFactorylength - the length of the bufferpublic DataBuffer createFloat(long length, boolean initialize)
DataBufferFactorycreateFloat in interface DataBufferFactorylength - the length of the bufferinitialize - If true: initialize the buffer. If false: don't initialize.public DataBuffer createInt(long length)
DataBufferFactorycreateInt in interface DataBufferFactorylength - the length of the data bufferpublic DataBuffer createInt(long length, boolean initialize)
DataBufferFactorycreateInt in interface DataBufferFactorylength - the length of the data bufferinitialize - If true: initialize the buffer. If false: don't initialize.public DataBuffer createDouble(int[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(double[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(byte[] data, int length)
DataBufferFactorycreateDouble in interface DataBufferFactorypublic DataBuffer createFloat(byte[] data, int length)
DataBufferFactorycreateFloat in interface DataBufferFactorypublic DataBuffer createFloat(double[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(double[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(float[] data)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(float[] data)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(float[] data)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(int[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(int[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(int[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(double[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(double[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(double[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createDouble(float[] data, boolean copy)
DataBufferFactorycreateDouble in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createFloat(float[] data, boolean copy)
DataBufferFactorycreateFloat in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createInt(float[] data, boolean copy)
DataBufferFactorycreateInt in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer create(org.bytedeco.javacpp.Pointer pointer, DataBuffer.Type type, long length, org.bytedeco.javacpp.indexer.Indexer indexer)
create in interface DataBufferFactorypointer - the pointer to usetype - the type of bufferlength - the length of the bufferindexer - the indexer for the pointerpublic DataBuffer createHalf(long length)
DataBufferFactorycreateHalf in interface DataBufferFactorylength - length of new data bufferpublic DataBuffer createHalf(long length, boolean initialize)
DataBufferFactorycreateHalf in interface DataBufferFactorylength - length of new data bufferinitialize - true if memset should be used on allocated memory, false otherwisepublic DataBuffer createHalf(float[] data, boolean copy)
createHalf in interface DataBufferFactorydata - the data to create the buffer fromcopy - public DataBuffer createHalf(double[] data, boolean copy)
createHalf in interface DataBufferFactorydata - the data to create the buffer fromcopy - public DataBuffer createHalf(int offset, double[] data, boolean copy)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer fromcopy - public DataBuffer createHalf(int offset, float[] data, boolean copy)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer fromcopy - public DataBuffer createHalf(int offset, int[] data, boolean copy)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer fromcopy - public DataBuffer createHalf(int offset, double[] data)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer frompublic DataBuffer createHalf(int offset, float[] data)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer frompublic DataBuffer createHalf(int offset, int[] data)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer frompublic DataBuffer createHalf(int offset, byte[] data, boolean copy)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer fromcopy - public DataBuffer createHalf(int[] data, boolean copy)
createHalf in interface DataBufferFactorydata - the data to create the buffer fromcopy - public DataBuffer createHalf(float[] data)
createHalf in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createHalf(double[] data)
createHalf in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createHalf(int[] data)
createHalf in interface DataBufferFactorydata - the data to create the buffer frompublic DataBuffer createHalf(int offset, byte[] data, int length)
createHalf in interface DataBufferFactoryoffset - data - the data to create the buffer fromlength - public DataBuffer createHalf(int offset, int length)
createHalf in interface DataBufferFactoryoffset - length - public DataBuffer createHalf(ByteBuffer buffer, int length)
createHalf in interface DataBufferFactorybuffer - length - public DataBuffer createHalf(byte[] data, int length)
createHalf in interface DataBufferFactorydata - length - Copyright © 2017. All Rights Reserved.