public class IntBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.Type
allocationMode, dataBuffer, doubleData, elementSize, floatData, intData, isPersist, length, ref, referencing
Constructor and Description |
---|
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, destroy, doReadObject, dup, ensureWritable, 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, toString, unPersist, write, write
public IntBuffer(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)
BaseDataBuffer
create
in class BaseDataBuffer
length
- a databuffer of the same type as
this with the given lengthpublic DataBuffer create(double[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(float[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(int[] data)
BaseDataBuffer
create
in class BaseDataBuffer
data
- the buffer to createpublic DataBuffer create(io.netty.buffer.ByteBuf buf, int length)
BaseDataBuffer
create
in class BaseDataBuffer
buf
- the buffer to createpublic DataBuffer.Type dataType()
DataBuffer
public int getElementSize()
DataBuffer
Copyright © 2015. All Rights Reserved.