public abstract class UByteIndexer extends Indexer
byte
primitive type, treated as unsigned.Modifier | Constructor and Description |
---|---|
protected |
UByteIndexer(int[] sizes,
int[] strides) |
Modifier and Type | Method and Description |
---|---|
static UByteIndexer |
create(byte[] array,
int[] sizes,
int[] strides) |
static UByteIndexer |
create(ByteBuffer buffer,
int[] sizes,
int[] strides) |
static UByteIndexer |
create(BytePointer pointer,
int[] sizes,
int[] strides) |
static UByteIndexer |
create(BytePointer pointer,
int[] sizes,
int[] strides,
boolean direct)
Creates a byte indexer to access efficiently the data of a pointer.
|
abstract int |
get(int... indices) |
abstract int |
get(int i) |
UByteIndexer |
get(int[] indices,
int[] b) |
abstract UByteIndexer |
get(int[] indices,
int[] b,
int offset,
int length) |
abstract int |
get(int i,
int j) |
UByteIndexer |
get(int i,
int[] b) |
abstract UByteIndexer |
get(int i,
int[] b,
int offset,
int length) |
abstract int |
get(int i,
int j,
int k) |
UByteIndexer |
get(int i,
int j,
int[] b) |
abstract UByteIndexer |
get(int i,
int j,
int[] b,
int offset,
int length) |
double |
getDouble(int... indices)
Calls
get(int...indices) and returns the value as a double. |
UByteIndexer |
put(int[] indices,
int... b) |
abstract UByteIndexer |
put(int[] indices,
int b) |
abstract UByteIndexer |
put(int[] indices,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int i,
int... b) |
abstract UByteIndexer |
put(int i,
int b) |
abstract UByteIndexer |
put(int i,
int[] b,
int offset,
int length) |
UByteIndexer |
put(int i,
int j,
int... b) |
abstract UByteIndexer |
put(int i,
int j,
int b) |
abstract UByteIndexer |
put(int i,
int j,
int[] b,
int offset,
int length) |
abstract UByteIndexer |
put(int i,
int j,
int k,
int b) |
public static UByteIndexer create(byte[] array, int[] sizes, int[] strides)
new ByteArrayIndexer(array, sizes, strides)
public static UByteIndexer create(ByteBuffer buffer, int[] sizes, int[] strides)
new ByteBufferIndexer(buffer, sizes, strides)
public static UByteIndexer create(BytePointer pointer, int[] sizes, int[] strides)
create(pointer, sizes, strides, true)
public static UByteIndexer create(BytePointer pointer, int[] sizes, int[] strides, boolean direct)
pointer
- data to access via a buffer or to copy to an arraydirect
- true
to use a direct buffer, see Indexer
for detailspublic abstract int get(int i)
array/buffer[i]
public UByteIndexer get(int i, int[] b)
this
where b = array/buffer[i]
public abstract UByteIndexer get(int i, int[] b, int offset, int length)
this
where b[offset:offset + length] = array/buffer[i]
public abstract int get(int i, int j)
array/buffer[i * strides[0] + j]
public UByteIndexer get(int i, int j, int[] b)
this
where b = array/buffer[i * strides[0] + j]
public abstract UByteIndexer get(int i, int j, int[] b, int offset, int length)
this
where b[offset:offset + length] = array/buffer[i * strides[0] + j]
public abstract int get(int i, int j, int k)
array/buffer[i * strides[0] + j * strides[1] + k]
public abstract int get(int... indices)
array/buffer[index(indices)]
public UByteIndexer get(int[] indices, int[] b)
this
where b = array/buffer[index(indices)]
public abstract UByteIndexer get(int[] indices, int[] b, int offset, int length)
this
where b[offset:offset + length] = array/buffer[index(indices)]
public abstract UByteIndexer put(int i, int b)
this
where array/buffer[i] = b
public UByteIndexer put(int i, int... b)
this
where array/buffer[i] = b
public abstract UByteIndexer put(int i, int[] b, int offset, int length)
this
where array/buffer[i] = b[offset:offset + length]
public abstract UByteIndexer put(int i, int j, int b)
this
where array/buffer[i * strides[0] + j] = b
public UByteIndexer put(int i, int j, int... b)
this
where array/buffer[i * strides[0] + j] = b
public abstract UByteIndexer put(int i, int j, int[] b, int offset, int length)
this
where array/buffer[i * strides[0] + j] = b[offset:offset + length]
public abstract UByteIndexer put(int i, int j, int k, int b)
this
where array/buffer[i * strides[0] + j * strides[1] + k] = b
public abstract UByteIndexer put(int[] indices, int b)
this
where array/buffer[index(indices)] = b
public UByteIndexer put(int[] indices, int... b)
this
where array/buffer[index(indices)] = b
public abstract UByteIndexer put(int[] indices, int[] b, int offset, int length)
this
where array/buffer[index(indices)] = b[offset:offset + length]
Copyright © 2015. All Rights Reserved.