public class UByteArrayIndexer extends UByteIndexer
byte[] array, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
array
The backing array.
|
| Constructor and Description |
|---|
UByteArrayIndexer(byte[] array,
int[] sizes,
int[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
int |
get(int... indices) |
int |
get(int i) |
UByteIndexer |
get(int[] indices,
int[] b,
int offset,
int length) |
int |
get(int i,
int j) |
UByteIndexer |
get(int i,
int[] b,
int offset,
int length) |
int |
get(int i,
int j,
int k) |
UByteIndexer |
get(int i,
int j,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int[] indices,
int b) |
UByteIndexer |
put(int[] indices,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int i,
int b) |
UByteIndexer |
put(int i,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int i,
int j,
int b) |
UByteIndexer |
put(int i,
int j,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int i,
int j,
int k,
int 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 UByteArrayIndexer(byte[] array,
int[] sizes,
int[] strides)
public byte[] array()
public int get(int i)
get in class UByteIndexerarray/buffer[i]public UByteIndexer get(int i, int[] b, int offset, int length)
get in class UByteIndexerthis where b[offset:offset + length] = array/buffer[i]public int get(int i,
int j)
get in class UByteIndexerarray/buffer[i * strides[0] + j]public UByteIndexer get(int i, int j, int[] b, int offset, int length)
get in class UByteIndexerthis where b[offset:offset + length] = array/buffer[i * strides[0] + j]public int get(int i,
int j,
int k)
get in class UByteIndexerarray/buffer[i * strides[0] + j * strides[1] + k]public int get(int... indices)
get in class UByteIndexerarray/buffer[index(indices)]public UByteIndexer get(int[] indices, int[] b, int offset, int length)
get in class UByteIndexerthis where b[offset:offset + length] = array/buffer[index(indices)]public UByteIndexer put(int i, int b)
put in class UByteIndexerthis where array/buffer[i] = bpublic UByteIndexer put(int i, int[] b, int offset, int length)
put in class UByteIndexerthis where array/buffer[i] = b[offset:offset + length]public UByteIndexer put(int i, int j, int b)
put in class UByteIndexerthis where array/buffer[i * strides[0] + j] = bpublic UByteIndexer put(int i, int j, int[] b, int offset, int length)
put in class UByteIndexerthis where array/buffer[i * strides[0] + j] = b[offset:offset + length]public UByteIndexer put(int i, int j, int k, int b)
put in class UByteIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = bpublic UByteIndexer put(int[] indices, int b)
put in class UByteIndexerthis where array/buffer[index(indices)] = bpublic UByteIndexer put(int[] indices, int[] b, int offset, int length)
put in class UByteIndexerthis where array/buffer[index(indices)] = b[offset:offset + length]Copyright © 2015. All Rights Reserved.