| Modifier and Type | Method and Description |
|---|---|
ByteNdArray |
ByteNdArray.read(ByteDataBuffer dst) |
static ByteNdArray |
NdArrays.wrap(ByteDataBuffer buffer,
Shape shape)
Wraps a buffer in a byte N-dimensional array of a given shape.
|
ByteNdArray |
ByteNdArray.write(ByteDataBuffer src) |
| Modifier and Type | Method and Description |
|---|---|
ByteDataBuffer |
ByteDataBuffer.copyTo(DataBuffer<Byte> dst,
long size) |
default ByteDataBuffer |
ByteDataBuffer.narrow(long size) |
static ByteDataBuffer |
DataBuffers.of(byte... values)
Create a buffer from an array of bytes into a data buffer.
|
static ByteDataBuffer |
DataBuffers.of(byte[] array,
boolean readOnly,
boolean makeCopy)
Create a buffer from an array of bytes into a data buffer.
|
static ByteDataBuffer |
DataBuffers.of(ByteBuffer buf)
Wraps a JDK NIO
ByteBuffer into a data buffer. |
static ByteDataBuffer |
DataBuffers.ofBytes(long size)
Creates a buffer of bytes that can store up to
size values |
default ByteDataBuffer |
ByteDataBuffer.offset(long index) |
default ByteDataBuffer |
ByteDataBuffer.read(byte[] dst)
Bulk get method, using byte arrays.
|
ByteDataBuffer |
ByteDataBuffer.read(byte[] dst,
int offset,
int length)
Bulk get method, using byte arrays.
|
ByteDataBuffer |
ByteDataBuffer.setByte(byte value,
long index)
Writes the given byte into this buffer at the given index.
|
default ByteDataBuffer |
ByteDataBuffer.setObject(Byte value,
long index) |
ByteDataBuffer |
ByteDataBuffer.slice(long index,
long size) |
default ByteDataBuffer |
ByteDataBuffer.write(byte[] src)
Bulk put method, using byte arrays.
|
ByteDataBuffer |
ByteDataBuffer.write(byte[] src,
int offset,
int length)
Bulk put method, using byte arrays.
|
| Modifier and Type | Method and Description |
|---|---|
default DataBufferWindow<ByteDataBuffer> |
ByteDataBuffer.window(long size) |
| Modifier and Type | Field and Description |
|---|---|
static BooleanDataLayout<ByteDataBuffer> |
DataLayouts.BOOL
Data layout for converting booleans to/from byte values.
|
| Modifier and Type | Method and Description |
|---|---|
default ByteDataBuffer |
ByteDataLayout.applyTo(S buffer) |
| Modifier and Type | Method and Description |
|---|---|
static <S extends DataBuffer<?>> |
DataBufferAdapterFactory.create(S buffer,
ByteDataLayout<S> layout)
Creates an adapter that applies a byte data layout to the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BoolLayout.readBoolean(ByteDataBuffer buffer,
long index) |
void |
BoolLayout.writeBoolean(ByteDataBuffer buffer,
boolean value,
long index) |
| Modifier and Type | Method and Description |
|---|---|
static ByteDataBuffer |
NioDataBufferFactory.create(ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
static ByteDataBuffer |
RawDataBufferFactory.create(byte[] array,
boolean readOnly) |
protected static ByteDataBuffer |
RawDataBufferFactory.mapNativeBytes(long address,
long size,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteDataBuffer |
ByteDenseNdArray.buffer() |
| Modifier and Type | Method and Description |
|---|---|
static ByteNdArray |
ByteDenseNdArray.create(ByteDataBuffer buffer,
Shape shape) |
ByteNdArray |
ByteDenseNdArray.read(ByteDataBuffer dst) |
ByteNdArray |
ByteDenseNdArray.write(ByteDataBuffer src) |
| Constructor and Description |
|---|
ByteDenseNdArray(ByteDataBuffer buffer,
Shape shape) |
Copyright © 2015–2020. All rights reserved.