public class Utf8Buffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeEx| Modifier and Type | Field and Description |
|---|---|
protected long |
numWords |
protected java.util.Collection<org.bytedeco.javacpp.Pointer> |
references |
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 |
|---|
Utf8Buffer(byte[] data,
long numWords) |
Utf8Buffer(java.nio.ByteBuffer buffer,
int length) |
Utf8Buffer(java.nio.ByteBuffer buffer,
int length,
long offset) |
Utf8Buffer(java.util.Collection<java.lang.String> strings) |
Utf8Buffer(DataBuffer underlyingBuffer,
long length,
long offset) |
Utf8Buffer(double[] data,
boolean copy) |
Utf8Buffer(double[] data,
boolean copy,
long offset) |
Utf8Buffer(float[] data,
boolean copy) |
Utf8Buffer(float[] data,
boolean copy,
long offset) |
Utf8Buffer(int[] data,
boolean copy,
long offset) |
Utf8Buffer(int[] ints,
boolean copy,
MemoryWorkspace workspace) |
Utf8Buffer(int length,
int elementSize) |
Utf8Buffer(int length,
int elementSize,
long offset) |
Utf8Buffer(long length) |
Utf8Buffer(long[] data,
boolean copy) |
Utf8Buffer(long[] data,
boolean copy,
MemoryWorkspace workspace) |
Utf8Buffer(long length,
boolean initialize) |
Utf8Buffer(long length,
boolean initialize,
MemoryWorkspace workspace) |
Utf8Buffer(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
|
java.lang.String |
getString(long index) |
protected void |
initTypeAndSize()
Initialize the opType of this buffer
|
void |
put(long index,
org.bytedeco.javacpp.Pointer pointer) |
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, 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, wrappedBuffer, write, writeprotected java.util.Collection<org.bytedeco.javacpp.Pointer> references
protected long numWords
public Utf8Buffer(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 Utf8Buffer(long length)
public Utf8Buffer(long length,
boolean initialize)
public Utf8Buffer(long length,
boolean initialize,
MemoryWorkspace workspace)
public Utf8Buffer(int[] ints,
boolean copy,
MemoryWorkspace workspace)
public Utf8Buffer(java.nio.ByteBuffer buffer,
int length,
long offset)
public Utf8Buffer(byte[] data,
long numWords)
public Utf8Buffer(double[] data,
boolean copy)
public Utf8Buffer(double[] data,
boolean copy,
long offset)
public Utf8Buffer(float[] data,
boolean copy)
public Utf8Buffer(long[] data,
boolean copy)
public Utf8Buffer(long[] data,
boolean copy,
MemoryWorkspace workspace)
public Utf8Buffer(float[] data,
boolean copy,
long offset)
public Utf8Buffer(int[] data,
boolean copy,
long offset)
public Utf8Buffer(int length,
int elementSize)
public Utf8Buffer(int length,
int elementSize,
long offset)
public Utf8Buffer(DataBuffer underlyingBuffer, long length, long offset)
public Utf8Buffer(@NonNull
java.util.Collection<java.lang.String> strings)
public Utf8Buffer(java.nio.ByteBuffer buffer,
int length)
public java.lang.String getString(long index)
protected DataBuffer create(long length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same opType as
this with the given lengthpublic DataBuffer create(double[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffercreate in class BaseDataBufferdata - the buffer to createpublic void put(long index,
org.bytedeco.javacpp.Pointer pointer)
protected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferCopyright © 2019. All rights reserved.