public class Int16Buffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeEx
allocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, referenced, released, TO_STRING_MAX_ELEMENTS, trackingPoint, type, underlyingLength, workspaceGenerationId, wrappedDataBuffer
Constructor and Description |
---|
Int16Buffer(byte[] data,
int length) |
Int16Buffer(java.nio.ByteBuffer buffer,
int length) |
Int16Buffer(java.nio.ByteBuffer buffer,
int length,
long offset) |
Int16Buffer(DataBuffer underlyingBuffer,
long length,
long offset) |
Int16Buffer(double[] data) |
Int16Buffer(double[] data,
boolean copyOnOps) |
Int16Buffer(double[] data,
boolean copy,
long offset) |
Int16Buffer(float[] data) |
Int16Buffer(float[] floats,
boolean copy) |
Int16Buffer(float[] data,
boolean copy,
long offset) |
Int16Buffer(float[] data,
boolean copy,
long offset,
MemoryWorkspace workspace) |
Int16Buffer(float[] floats,
boolean copy,
MemoryWorkspace workspace) |
Int16Buffer(float[] data,
MemoryWorkspace workspace) |
Int16Buffer(int[] data) |
Int16Buffer(int[] data,
boolean copyOnOps) |
Int16Buffer(int[] data,
boolean copy,
long offset) |
Int16Buffer(int length,
int elementSize) |
Int16Buffer(int length,
int elementSize,
long offset) |
Int16Buffer(long length)
Create a float buffer with the given length
|
Int16Buffer(long length,
boolean initialize) |
Int16Buffer(long length,
boolean initialize,
MemoryWorkspace workspace) |
Int16Buffer(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
|
protected void |
initTypeAndSize()
Initialize the opType of this buffer
|
addReferencing, address, addressPointer, allocationMode, array, asBytes, asDouble, asFloat, asInt, asLong, asNio, asNioDouble, asNioFloat, asNioInt, asNioLong, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, capacity, close, closeable, copyAtStride, dataType, destroy, dirty, doReadObject, dup, equals, flush, fromFloat, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getGenerationId, getInt, getIntsAt, getIntsAt, getLong, getLongsAt, getLongsAt, getNumber, getParentWorkspace, getShort, getTrackingPoint, hashCode, indexer, isAttached, isConstant, isInScope, isPersist, length, markReleased, offset, originalDataBuffer, originalOffset, persist, pickReferent, platformAddress, pointer, pointerIndexerByCurrentType, put, put, put, put, put, putByDestinationType, read, read, readContent, readHeader, reallocate, references, release, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setData, setData, setData, setData, setIndexer, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wasClosed, wrappedBuffer, write, write
public Int16Buffer(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 Int16Buffer(long length)
length
- the float buffer with the given lengthpublic Int16Buffer(long length, boolean initialize)
public Int16Buffer(long length, boolean initialize, MemoryWorkspace workspace)
public Int16Buffer(int length, int elementSize)
public Int16Buffer(int length, int elementSize, long offset)
public Int16Buffer(DataBuffer underlyingBuffer, long length, long offset)
public Int16Buffer(float[] data)
public Int16Buffer(float[] data, MemoryWorkspace workspace)
public Int16Buffer(int[] data)
public Int16Buffer(double[] data)
public Int16Buffer(int[] data, boolean copyOnOps)
public Int16Buffer(int[] data, boolean copy, long offset)
public Int16Buffer(double[] data, boolean copyOnOps)
public Int16Buffer(double[] data, boolean copy, long offset)
public Int16Buffer(java.nio.ByteBuffer buffer, int length)
public Int16Buffer(java.nio.ByteBuffer buffer, int length, long offset)
public Int16Buffer(byte[] data, int length)
public Int16Buffer(float[] floats, boolean copy)
public Int16Buffer(float[] floats, boolean copy, MemoryWorkspace workspace)
public Int16Buffer(float[] data, boolean copy, long offset)
public Int16Buffer(float[] data, boolean copy, long offset, MemoryWorkspace workspace)
protected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
protected DataBuffer create(long length)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same opType 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 createCopyright © 2019. All rights reserved.