public class CompressedDataBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type, DataBuffer.TypeEx
Modifier and Type | Field and Description |
---|---|
protected CompressionDescriptor |
compressionDescriptor |
allocationMode, constant, dirty, elementSize, globalType, indexer, isPersist, length, offset, originalBuffer, originalOffset, pointer, referencing, trackingPoint, type, underlyingLength, wrappedBuffer, 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 type of this buffer
|
long |
length() |
static DataBuffer |
readUnknown(DataInputStream s,
long length)
Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBuffer
|
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, copyAtStride, dataType, destroy, dirty, doReadObject, equals, flush, fromFloat, getComplex, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, getShort, getTrackingPoint, hashCode, indexer, isConstant, isPersist, offset, originalDataBuffer, originalOffset, persist, pointer, pointerIndexerByGlobalType, put, put, put, put, putByGlobalType, read, read, readContent, references, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setNioBuffer, setTrackingPoint, toString, underlyingDataBuffer, underlyingLength, unPersist, 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
public static DataBuffer readUnknown(DataInputStream s, long length)
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 type 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 createpublic IComplexFloat getComplexFloat(long i)
getComplexFloat
in interface DataBuffer
getComplexFloat
in class BaseDataBuffer
public IComplexDouble getComplexDouble(long i)
getComplexDouble
in interface DataBuffer
getComplexDouble
in class BaseDataBuffer
Copyright © 2016. All Rights Reserved.