public class IntBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeallocationMode, dirty, doubleData, elementSize, floatData, intData, isPersist, length, ref, referencing, wrappedBuffer| Constructor and Description |
|---|
IntBuffer(ByteBuffer buffer,
int length) |
IntBuffer(io.netty.buffer.ByteBuf buf,
int length) |
IntBuffer(double[] data) |
IntBuffer(float[] data) |
IntBuffer(int length) |
IntBuffer(int[] data) |
IntBuffer(int[] data,
boolean copy) |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer |
create(io.netty.buffer.ByteBuf buf,
int length)
Create the data buffer
with respect to the given byte buffer
|
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
|
protected DataBuffer |
create(int length)
Create with length
|
DataBuffer |
create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer.Type |
dataType()
The data type of the buffer
|
int |
getElementSize()
The number of bytes for each individual element
|
addReferencing, allocationMode, array, asBytes, asDouble, asFloat, asInt, asNetty, asNio, asNioDouble, asNioFloat, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, copyAtStride, destroy, dirty, doReadObject, dup, equals, flush, getComplex, getComplexDouble, getComplexFloat, getDouble, getDoublesAt, getDoublesAt, getFloat, getFloatsAt, getFloatsAt, getInt, getNumber, hashCode, isPersist, length, persist, put, put, put, put, read, read, references, removeReferencing, setData, setData, setData, setNioBuffer, toString, unPersist, write, writepublic IntBuffer(int length)
public IntBuffer(ByteBuffer buffer, int length)
public IntBuffer(int[] data)
public IntBuffer(double[] data)
public IntBuffer(float[] data)
public IntBuffer(io.netty.buffer.ByteBuf buf,
int length)
public IntBuffer(int[] data,
boolean copy)
protected DataBuffer create(int length)
BaseDataBuffercreate in class BaseDataBufferlength - a databuffer of the same type 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 DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffercreate in class BaseDataBufferbuf - the buffer to createpublic DataBuffer.Type dataType()
DataBufferpublic int getElementSize()
DataBufferCopyright © 2016. All Rights Reserved.