public class UIntRawIndexer extends UIntIndexer
IntPointer
using the Raw
instance, treated as unsigned.Modifier and Type | Field and Description |
---|---|
(package private) long |
base
Base address and number of elements accessible.
|
protected IntPointer |
pointer
The backing pointer.
|
protected static Raw |
RAW
The instance for the raw memory interface.
|
(package private) long |
size
Base address and number of elements accessible.
|
VALUE_BYTES
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
UIntRawIndexer(IntPointer pointer)
Calls
UIntRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 }) . |
UIntRawIndexer(IntPointer pointer,
long... sizes)
Calls
UIntRawIndexer(pointer, sizes, strides(sizes)) . |
UIntRawIndexer(IntPointer pointer,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
long |
get(long... indices)
Returns
array/buffer[index(indices)] |
long |
get(long i)
Returns
array/buffer[i] |
UIntIndexer |
get(long[] indices,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[index(indices)] |
long |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
UIntIndexer |
get(long i,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[i] |
long |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
UIntIndexer |
get(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where n[offset:offset + length] = array/buffer[i * strides[0] + j] |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
UIntIndexer |
put(long[] indices,
long n)
Returns
this where array/buffer[index(indices)] = n |
UIntIndexer |
put(long[] indices,
long[] m,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long n)
Returns
this where array/buffer[i] = n |
UIntIndexer |
put(long i,
long[] m,
int offset,
int length)
Returns
this where array/buffer[i] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long n)
Returns
this where array/buffer[i * strides[0] + j] = n |
UIntIndexer |
put(long i,
long j,
long[] m,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = n[offset:offset + length] |
UIntIndexer |
put(long i,
long j,
long k,
long n)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = n |
void |
release()
Makes sure changes are reflected onto the backing memory and clears any references.
|
create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
protected static final Raw RAW
protected IntPointer pointer
final long base
final long size
public UIntRawIndexer(IntPointer pointer)
UIntRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 })
.public UIntRawIndexer(IntPointer pointer, long... sizes)
UIntRawIndexer(pointer, sizes, strides(sizes))
.public UIntRawIndexer(IntPointer pointer, long[] sizes, long[] strides)
public Pointer pointer()
Indexer
null
if nonepublic long get(long i)
UIntIndexer
array/buffer[i]
get
in class UIntIndexer
public UIntIndexer get(long i, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[i]
get
in class UIntIndexer
public long get(long i, long j)
UIntIndexer
array/buffer[i * strides[0] + j]
get
in class UIntIndexer
public UIntIndexer get(long i, long j, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[i * strides[0] + j]
get
in class UIntIndexer
public long get(long i, long j, long k)
UIntIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
get
in class UIntIndexer
public long get(long... indices)
UIntIndexer
array/buffer[index(indices)]
get
in class UIntIndexer
public UIntIndexer get(long[] indices, long[] m, int offset, int length)
UIntIndexer
this
where n[offset:offset + length] = array/buffer[index(indices)]
get
in class UIntIndexer
public UIntIndexer put(long i, long n)
UIntIndexer
this
where array/buffer[i] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[i] = n[offset:offset + length]
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long n)
UIntIndexer
this
where array/buffer[i * strides[0] + j] = n
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[i * strides[0] + j] = n[offset:offset + length]
put
in class UIntIndexer
public UIntIndexer put(long i, long j, long k, long n)
UIntIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = n
put
in class UIntIndexer
public UIntIndexer put(long[] indices, long n)
UIntIndexer
this
where array/buffer[index(indices)] = n
put
in class UIntIndexer
public UIntIndexer put(long[] indices, long[] m, int offset, int length)
UIntIndexer
this
where array/buffer[index(indices)] = n[offset:offset + length]
put
in class UIntIndexer
Copyright © 2020. All rights reserved.