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
Constructor and Description |
---|
ULongRawIndexer(LongPointer pointer)
Calls
ULongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())) . |
ULongRawIndexer(LongPointer pointer,
Index index)
Constructor to set the
pointer and Indexer.index . |
ULongRawIndexer(LongPointer pointer,
long... sizes)
Calls
ULongRawIndexer(pointer, Index.create(sizes)) . |
ULongRawIndexer(LongPointer pointer,
long[] sizes,
long[] strides)
Calls
ULongRawIndexer(pointer, Index.create(sizes, strides)) . |
Modifier and Type | Method and Description |
---|---|
BigInteger |
get(long... indices)
Returns
array/buffer[index(indices)] |
BigInteger |
get(long i)
Returns
array/buffer[index(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[index(i)] |
BigInteger |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i, j)] |
BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
BigInteger |
getRaw(long i) |
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[index(i)] = l |
ULongIndexer |
put(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[index(i, j)] = l |
ULongIndexer |
put(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[index(i, j, k)] = l |
ULongIndexer |
putRaw(long i,
BigInteger l) |
ULongIndexer |
reindex(Index index)
Returns a new Indexer using the same data, but with a different Index.
|
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, 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, Index.create(pointer.limit() - pointer.position()))
.public ULongRawIndexer(LongPointer pointer, long... sizes)
ULongRawIndexer(pointer, Index.create(sizes))
.public ULongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
ULongRawIndexer(pointer, Index.create(sizes, strides))
.public ULongRawIndexer(LongPointer pointer, Index index)
pointer
and Indexer.index
.public Pointer pointer()
Indexer
null
if nonepublic ULongIndexer reindex(Index index)
Indexer
public BigInteger getRaw(long i)
public BigInteger get(long i)
ULongIndexer
array/buffer[index(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[index(i)]
get
in class ULongIndexer
public BigInteger get(long i, long j)
ULongIndexer
array/buffer[index(i, 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[index(i, j)]
get
in class ULongIndexer
public BigInteger get(long i, long j, long k)
ULongIndexer
array/buffer[index(i, j, 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 putRaw(long i, BigInteger l)
public ULongIndexer put(long i, BigInteger l)
ULongIndexer
this
where array/buffer[index(i)] = l
put
in class ULongIndexer
public ULongIndexer put(long i, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(i)] = l[offset:offset + length]
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger l)
ULongIndexer
this
where array/buffer[index(i, j)] = l
put
in class ULongIndexer
public ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
ULongIndexer
this
where array/buffer[index(i, 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[index(i, j, 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 © 2023. All rights reserved.