public class CompressedDataBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeEx| Modifier and Type | Field and Description |
|---|---|
protected CompressionDescriptor |
compressionDescriptor |
allocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, 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() |
IComplexDouble |
getComplexDouble(long i) |
IComplexFloat |
getComplexFloat(long i) |
protected void |
initTypeAndSize()
Initialize the opType of this buffer
|
long |
length() |
static DataBuffer |
readUnknown(DataInputStream s,
long length)
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, asNio, asNioDouble, asNioFloat, asNioInt, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, capacity, copyAtStride, dataType, destroy, dirty, doReadObject, equals, flush, fromFloat, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getGenerationId, getInt, getLong, getNumber, getParentWorkspace, getShort, getTrackingPoint, hashCode, indexer, isAttached, isConstant, isInScope, isPersist, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, readContent, reallocate, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wrappedBuffer, writeprotected CompressionDescriptor compressionDescriptor
public CompressedDataBuffer(org.bytedeco.javacpp.Pointer pointer,
@NonNull
CompressionDescriptor descriptor)
protected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferpublic void write(DataOutputStream out) throws IOException
write in interface DataBufferwrite in class BaseDataBufferIOExceptionprotected void setIndexer(org.bytedeco.javacpp.indexer.Indexer indexer)
setIndexer in class BaseDataBufferpublic static DataBuffer readUnknown(DataInputStream s, long length)
s - public DataBuffer dup()
dup in interface DataBufferdup in class BaseDataBufferpublic long length()
length in interface DataBufferlength in class BaseDataBufferprotected DataBuffer create(long length)
create in class BaseDataBufferlength - a databuffer of the same opType as
this with the given lengthpublic DataBuffer create(double[] data)
create in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(float[] data)
create in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(int[] data)
create in class BaseDataBufferdata - the buffer to createpublic IComplexFloat getComplexFloat(long i)
getComplexFloat in interface DataBuffergetComplexFloat in class BaseDataBufferpublic IComplexDouble getComplexDouble(long i)
getComplexDouble in interface DataBuffergetComplexDouble in class BaseDataBufferCopyright © 2018. All rights reserved.