public class ULongRawIndexer extends ULongIndexer
LongPointer
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 LongPointer |
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 |
---|
ULongRawIndexer(LongPointer pointer)
Calls
ULongRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 }) . |
ULongRawIndexer(LongPointer pointer,
long... sizes)
Calls
ULongRawIndexer(pointer, sizes, strides(sizes)) . |
ULongRawIndexer(LongPointer pointer,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
get(long... indices)
Returns
array/buffer[index(indices)] |
BigInteger |
get(long i)
Returns
array/buffer[i] |
ULongIndexer |
get(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(indices)] |
ULongIndexer |
get(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i] |
BigInteger |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[i * strides[0] + j] |
BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
ULongIndexer |
put(long[] indices,
BigInteger l)
Returns
this where array/buffer[index(indices)] = l |
ULongIndexer |
put(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
BigInteger l)
Returns
this where array/buffer[i] = l |
ULongIndexer |
put(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[i] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j] = l |
ULongIndexer |
put(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = l |
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, fromBigInteger, get, get, get, getDouble, put, put, put, putDouble, toBigInteger
protected static final Raw RAW
protected LongPointer pointer
final long base
final long size
public ULongRawIndexer(LongPointer pointer)
ULongRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 })
.public ULongRawIndexer(LongPointer pointer, long... sizes)
ULongRawIndexer(pointer, sizes, strides(sizes))
.public ULongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
public Pointer pointer()
Indexer
null
if nonepublic BigInteger get(long i)
ULongIndexer
array/buffer[i]
get
in class ULongIndexer
public ULongIndexer get(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[i]
get
in class ULongIndexer
public BigInteger get(long i, long j)
ULongIndexer
array/buffer[i * strides[0] + j]
get
in class ULongIndexer
public ULongIndexer get(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[i * strides[0] + j]
get
in class ULongIndexer
public BigInteger get(long i, long j, long k)
ULongIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
get
in class ULongIndexer
public BigInteger get(long... indices)
ULongIndexer
array/buffer[index(indices)]
get
in class ULongIndexer
public ULongIndexer get(long[] indices, BigInteger[] l, int offset, int length)
ULongIndexer
this
where l[offset:offset + length] = array/buffer[index(indices)]
get
in class ULongIndexer
public ULongIndexer put(long i, BigInteger l)
ULongIndexer
this
where array/buffer[i] = l
put
in class ULongIndexer
public ULongIndexer put(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[i] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger l)
ULongIndexer
this
where array/buffer[i * strides[0] + j] = l
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[i * strides[0] + j] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, long k, BigInteger l)
ULongIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = l
put
in class ULongIndexer
public ULongIndexer put(long[] indices, BigInteger l)
ULongIndexer
this
where array/buffer[index(indices)] = l
put
in class ULongIndexer
public ULongIndexer put(long[] indices, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(indices)] = l[offset:offset + length]
put
in class ULongIndexer
Copyright © 2020. All rights reserved.