public class ByteArrayIndexer extends ByteIndexer
byte[] array.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
array
The backing array.
|
| Constructor and Description |
|---|
ByteArrayIndexer(byte[] array,
int[] sizes,
int[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
byte |
get(int... indices) |
byte |
get(int i) |
ByteIndexer |
get(int[] indices,
byte[] b,
int offset,
int length) |
ByteIndexer |
get(int i,
byte[] b,
int offset,
int length) |
byte |
get(int i,
int j) |
ByteIndexer |
get(int i,
int j,
byte[] b,
int offset,
int length) |
byte |
get(int i,
int j,
int k) |
ByteIndexer |
put(int[] indices,
byte b) |
ByteIndexer |
put(int[] indices,
byte[] b,
int offset,
int length) |
ByteIndexer |
put(int i,
byte b) |
ByteIndexer |
put(int i,
byte[] b,
int offset,
int length) |
ByteIndexer |
put(int i,
int j,
byte b) |
ByteIndexer |
put(int i,
int j,
byte[] b,
int offset,
int length) |
ByteIndexer |
put(int i,
int j,
int k,
byte b) |
void |
release()
Makes sure changes are reflected onto the backing memory and releases any references.
|
create, create, create, create, get, get, get, getDouble, put, put, put, putDoublepublic ByteArrayIndexer(byte[] array,
int[] sizes,
int[] strides)
public byte[] array()
public byte get(int i)
get in class ByteIndexerarray/buffer[i]public ByteIndexer get(int i, byte[] b, int offset, int length)
get in class ByteIndexerthis where b[offset:offset + length] = array/buffer[i]public byte get(int i,
int j)
get in class ByteIndexerarray/buffer[i * strides[0] + j]public ByteIndexer get(int i, int j, byte[] b, int offset, int length)
get in class ByteIndexerthis where b[offset:offset + length] = array/buffer[i * strides[0] + j]public byte get(int i,
int j,
int k)
get in class ByteIndexerarray/buffer[i * strides[0] + j * strides[1] + k]public byte get(int... indices)
get in class ByteIndexerarray/buffer[index(indices)]public ByteIndexer get(int[] indices, byte[] b, int offset, int length)
get in class ByteIndexerthis where b[offset:offset + length] = array/buffer[index(indices)]public ByteIndexer put(int i, byte b)
put in class ByteIndexerthis where array/buffer[i] = bpublic ByteIndexer put(int i, byte[] b, int offset, int length)
put in class ByteIndexerthis where array/buffer[i] = b[offset:offset + length]public ByteIndexer put(int i, int j, byte b)
put in class ByteIndexerthis where array/buffer[i * strides[0] + j] = bpublic ByteIndexer put(int i, int j, byte[] b, int offset, int length)
put in class ByteIndexerthis where array/buffer[i * strides[0] + j] = b[offset:offset + length]public ByteIndexer put(int i, int j, int k, byte b)
put in class ByteIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = bpublic ByteIndexer put(int[] indices, byte b)
put in class ByteIndexerthis where array/buffer[index(indices)] = bpublic ByteIndexer put(int[] indices, byte[] b, int offset, int length)
put in class ByteIndexerthis where array/buffer[index(indices)] = b[offset:offset + length]Copyright © 2015. All Rights Reserved.