public class CompressedDataBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeEx
Modifier and Type | Field and Description |
---|---|
protected CompressionDescriptor |
compressionDescriptor |
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 |
---|
CompressedDataBuffer(org.bytedeco.javacpp.Pointer pointer,
CompressionDescriptor descriptor) |
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
|
DataBuffer |
dup() |
protected void |
initTypeAndSize()
Initialize the opType of this buffer
|
long |
length() |
static DataBuffer |
readUnknown(DataInputStream s,
DataBuffer.AllocationMode allocMode,
long length,
DataType type)
Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBuffer
|
protected void |
setIndexer(org.bytedeco.javacpp.indexer.Indexer indexer) |
void |
write(DataOutputStream out) |
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, 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, markReleased, offset, originalDataBuffer, originalOffset, persist, pickReferent, 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, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wrappedBuffer, write
protected CompressionDescriptor compressionDescriptor
public CompressedDataBuffer(org.bytedeco.javacpp.Pointer pointer, @NonNull CompressionDescriptor descriptor)
protected void initTypeAndSize()
initTypeAndSize
in class BaseDataBuffer
public void write(DataOutputStream out) throws IOException
write
in interface DataBuffer
write
in class BaseDataBuffer
IOException
protected void setIndexer(org.bytedeco.javacpp.indexer.Indexer indexer)
setIndexer
in class BaseDataBuffer
public static DataBuffer readUnknown(DataInputStream s, DataBuffer.AllocationMode allocMode, long length, DataType type)
s
- public DataBuffer dup()
dup
in interface DataBuffer
dup
in class BaseDataBuffer
public long length()
length
in interface DataBuffer
length
in class BaseDataBuffer
protected DataBuffer create(long length)
create
in class BaseDataBuffer
length
- a databuffer of the same opType as
this with the given lengthpublic DataBuffer create(double[] data)
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(float[] data)
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(int[] data)
create
in class BaseDataBuffer
data
- the buffer to createCopyright © 2019. All rights reserved.