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.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,
DataBuffer.Type 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 |
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(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 buffer
|
DataBuffer |
createDouble(long offset,
ByteBuffer buffer,
int length)
Creates a double data 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(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(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,
ByteBuffer buffer,
int length)
Create a float data 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(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(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,
byte[] data,
int length)
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(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[] 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,
ByteBuffer buffer,
int length)
Create int buffer
|
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(ByteBuffer buffer,
int length) |
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
|
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
|
protected DataBuffer.AllocationMode allocationMode
public void setAllocationMode(DataBuffer.AllocationMode allocationMode)
DataBufferFactory
setAllocationMode
in interface DataBufferFactory
public DataBuffer.AllocationMode allocationMode()
DataBufferFactory
allocationMode
in interface DataBufferFactory
public DataBuffer create(DataBuffer underlyingBuffer, long offset, long length)
DataBufferFactory
create
in interface DataBufferFactory
underlyingBuffer
- the underlying buffer to get the storage fromoffset
- the offset to view the data aslength
- the length of the bufferpublic DataBuffer createInt(long offset, ByteBuffer buffer, int length)
DataBufferFactory
createInt
in interface DataBufferFactory
public DataBuffer createFloat(long offset, ByteBuffer buffer, int length)
DataBufferFactory
createFloat
in interface DataBufferFactory
public DataBuffer createDouble(long offset, ByteBuffer buffer, int length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createDouble(long offset, int length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createFloat(long offset, int length)
DataBufferFactory
createFloat
in interface DataBufferFactory
length
- the length of the bufferpublic DataBuffer createInt(long offset, int length)
DataBufferFactory
createInt
in interface DataBufferFactory
length
- the length of the data bufferpublic DataBuffer createDouble(long offset, int[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, int[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long offset, int[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, double[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, double[] data, MemoryWorkspace workspace)
createDouble
in interface DataBufferFactory
public DataBuffer createDouble(long offset, byte[] data, int length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createFloat(long offset, byte[] data, int length)
DataBufferFactory
createFloat
in interface DataBufferFactory
public DataBuffer createFloat(long offset, double[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long offset, double[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, float[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, float[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, float[] data, MemoryWorkspace workspace)
createFloat
in interface DataBufferFactory
public DataBuffer createInt(long offset, float[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, int[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, int[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long offset, int[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, double[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, double[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long offset, double[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long offset, float[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long offset, float[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long offset, float[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(ByteBuffer buffer, int length)
DataBufferFactory
createInt
in interface DataBufferFactory
public DataBuffer createLong(ByteBuffer buffer, int length)
createLong
in interface DataBufferFactory
public DataBuffer createFloat(ByteBuffer buffer, int length)
DataBufferFactory
createFloat
in interface DataBufferFactory
public DataBuffer createDouble(ByteBuffer buffer, int length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createDouble(long length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createDouble(long length, boolean initialize)
DataBufferFactory
createDouble
in interface DataBufferFactory
initialize
- If true: initialize the buffer. If false: don't initialize.public DataBuffer createFloat(long length)
DataBufferFactory
createFloat
in interface DataBufferFactory
length
- the length of the bufferpublic DataBuffer createFloat(long length, boolean initialize)
DataBufferFactory
createFloat
in interface DataBufferFactory
length
- the length of the bufferinitialize
- If true: initialize the buffer. If false: don't initialize.public DataBuffer createFloat(long length, boolean initialize, MemoryWorkspace workspace)
createFloat
in interface DataBufferFactory
public DataBuffer createInt(long length)
DataBufferFactory
createInt
in interface DataBufferFactory
length
- the length of the data bufferpublic DataBuffer createInt(long length, boolean initialize)
DataBufferFactory
createInt
in interface DataBufferFactory
length
- the length of the data bufferinitialize
- If true: initialize the buffer. If false: don't initialize.public DataBuffer createInt(long length, boolean initialize, MemoryWorkspace workspace)
createInt
in interface DataBufferFactory
public DataBuffer createSame(DataBuffer buffer, boolean init)
createSame
in interface DataBufferFactory
buffer
- public DataBuffer createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)
createSame
in interface DataBufferFactory
buffer
- workspace
- public DataBuffer createDouble(int[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(int[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(int[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(int[] data, MemoryWorkspace workspace)
createInt
in interface DataBufferFactory
public DataBuffer createInt(int[] data, boolean copy, MemoryWorkspace workspace)
createInt
in interface DataBufferFactory
public DataBuffer createDouble(double[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(byte[] data, int length)
DataBufferFactory
createDouble
in interface DataBufferFactory
public DataBuffer createFloat(byte[] data, int length)
DataBufferFactory
createFloat
in interface DataBufferFactory
public DataBuffer createFloat(double[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(double[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(float[] data)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(float[] data)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(float[] data, MemoryWorkspace workspace)
createFloat
in interface DataBufferFactory
public DataBuffer createInt(float[] data)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(int[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(int[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(int[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createLong(int[] data, boolean copy)
DataBufferFactory
createLong
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(long[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(long[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createLong(long[] data)
createLong
in interface DataBufferFactory
public DataBuffer createLong(long[] data, boolean copy)
createLong
in interface DataBufferFactory
public DataBuffer createLong(long[] data, MemoryWorkspace workspace)
createLong
in interface DataBufferFactory
public DataBuffer createLong(long length)
createLong
in interface DataBufferFactory
public DataBuffer createLong(long length, boolean initialize)
DataBufferFactory
createLong
in interface DataBufferFactory
length
- the length of the data bufferinitialize
- If true: initialize the buffer. If false: don't initialize.public DataBuffer createLong(long length, boolean initialize, MemoryWorkspace workspace)
createLong
in interface DataBufferFactory
public DataBuffer createDouble(double[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(double[] data, MemoryWorkspace workspace)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(double[] data, boolean copy, MemoryWorkspace workspace)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(long length, boolean initialize, MemoryWorkspace workspace)
createDouble
in interface DataBufferFactory
public DataBuffer createFloat(double[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createInt(double[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createDouble(float[] data, boolean copy)
DataBufferFactory
createDouble
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(float[] data, boolean copy)
DataBufferFactory
createFloat
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createFloat(float[] data, boolean copy, MemoryWorkspace workspace)
createFloat
in interface DataBufferFactory
public DataBuffer createInt(float[] data, boolean copy)
DataBufferFactory
createInt
in interface DataBufferFactory
data
- 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 DataBufferFactory
pointer
- the pointer to usetype
- the opType of bufferlength
- the length of the bufferindexer
- the indexer for the pointerpublic DataBuffer create(org.bytedeco.javacpp.DoublePointer doublePointer, long length)
create
in interface DataBufferFactory
doublePointer
- length
- public DataBuffer create(org.bytedeco.javacpp.IntPointer intPointer, long length)
create
in interface DataBufferFactory
intPointer
- length
- public DataBuffer create(org.bytedeco.javacpp.FloatPointer floatPointer, long length)
create
in interface DataBufferFactory
floatPointer
- length
- public DataBuffer createHalf(long length)
DataBufferFactory
createHalf
in interface DataBufferFactory
length
- length of new data bufferpublic DataBuffer createHalf(long length, boolean initialize)
DataBufferFactory
createHalf
in interface DataBufferFactory
length
- 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 DataBufferFactory
data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(double[] data, boolean copy)
createHalf
in interface DataBufferFactory
data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(long offset, double[] data, boolean copy)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(long offset, float[] data, boolean copy)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(long offset, int[] data, boolean copy)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(long offset, double[] data)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer frompublic DataBuffer createHalf(long offset, float[] data)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer frompublic DataBuffer createHalf(long offset, float[] data, MemoryWorkspace workspace)
createHalf
in interface DataBufferFactory
public DataBuffer createHalf(long offset, int[] data)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer frompublic DataBuffer createHalf(long offset, byte[] data, boolean copy)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(int[] data, boolean copy)
createHalf
in interface DataBufferFactory
data
- the data to create the buffer fromcopy
- public DataBuffer createHalf(float[] data)
createHalf
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createHalf(double[] data)
createHalf
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createHalf(int[] data)
createHalf
in interface DataBufferFactory
data
- the data to create the buffer frompublic DataBuffer createHalf(long offset, byte[] data, int length)
createHalf
in interface DataBufferFactory
offset
- data
- the data to create the buffer fromlength
- public DataBuffer createHalf(long offset, int length)
createHalf
in interface DataBufferFactory
offset
- length
- public DataBuffer createHalf(ByteBuffer buffer, int length)
createHalf
in interface DataBufferFactory
buffer
- length
- public DataBuffer createHalf(byte[] data, int length)
createHalf
in interface DataBufferFactory
data
- length
- public DataBuffer createHalf(long length, boolean initialize, MemoryWorkspace workspace)
createHalf
in interface DataBufferFactory
public DataBuffer createHalf(float[] data, MemoryWorkspace workspace)
createHalf
in interface DataBufferFactory
public DataBuffer createHalf(float[] data, boolean copy, MemoryWorkspace workspace)
createHalf
in interface DataBufferFactory
public Class<? extends DataBuffer> intBufferClass()
intBufferClass
in interface DataBufferFactory
public Class<? extends DataBuffer> longBufferClass()
longBufferClass
in interface DataBufferFactory
public Class<? extends DataBuffer> halfBufferClass()
halfBufferClass
in interface DataBufferFactory
public Class<? extends DataBuffer> floatBufferClass()
floatBufferClass
in interface DataBufferFactory
public Class<? extends DataBuffer> doubleBufferClass()
doubleBufferClass
in interface DataBufferFactory
Copyright © 2018. All rights reserved.