Package org.bytedeco.javacpp.indexer
Class ULongRawIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.ULongIndexer
-
- org.bytedeco.javacpp.indexer.ULongRawIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ULongRawIndexer extends ULongIndexer
An indexer for aLongPointer
using theRaw
instance, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class org.bytedeco.javacpp.indexer.ULongIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description ULongRawIndexer(LongPointer pointer)
CallsULongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.ULongRawIndexer(LongPointer pointer, long... sizes)
CallsULongRawIndexer(pointer, Index.create(sizes))
.ULongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
CallsULongRawIndexer(pointer, Index.create(sizes, strides))
.ULongRawIndexer(LongPointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
get(long i)
Returnsarray/buffer[index(i)]
java.math.BigInteger
get(long... indices)
Returnsarray/buffer[index(indices)]
ULongIndexer
get(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
java.math.BigInteger
get(long i, long j)
Returnsarray/buffer[index(i, j)]
java.math.BigInteger
get(long i, long j, long k)
Returnsarray/buffer[index(i, j, k)]
ULongIndexer
get(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
ULongIndexer
get(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
java.math.BigInteger
getRaw(long i)
Pointer
pointer()
Returns the backing pointer, ornull
if noneULongIndexer
put(long[] indices, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(indices)] = l
ULongIndexer
put(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
ULongIndexer
put(long i, long j, long k, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j, k)] = l
ULongIndexer
put(long i, long j, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j)] = l
ULongIndexer
put(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
ULongIndexer
put(long i, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i)] = l
ULongIndexer
put(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
ULongIndexer
putRaw(long i, java.math.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.-
Methods inherited from class org.bytedeco.javacpp.indexer.ULongIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, fromBigInteger, get, get, get, getDouble, put, put, put, putDouble, toBigInteger
-
-
-
-
Field Detail
-
RAW
protected static final Raw RAW
The instance for the raw memory interface.
-
pointer
protected LongPointer pointer
The backing pointer.
-
base
final long base
Base address and number of elements accessible.
-
size
final long size
Base address and number of elements accessible.
-
-
Constructor Detail
-
ULongRawIndexer
public ULongRawIndexer(LongPointer pointer)
CallsULongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.
-
ULongRawIndexer
public ULongRawIndexer(LongPointer pointer, long... sizes)
CallsULongRawIndexer(pointer, Index.create(sizes))
.
-
ULongRawIndexer
public ULongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
CallsULongRawIndexer(pointer, Index.create(sizes, strides))
.
-
ULongRawIndexer
public ULongRawIndexer(LongPointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:Indexer
Returns the backing pointer, ornull
if none
-
reindex
public ULongIndexer reindex(Index index)
Description copied from class:Indexer
Returns a new Indexer using the same data, but with a different Index.
-
getRaw
public java.math.BigInteger getRaw(long i)
-
get
public java.math.BigInteger get(long i)
Description copied from class:ULongIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classULongIndexer
-
get
public ULongIndexer get(long i, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classULongIndexer
-
get
public java.math.BigInteger get(long i, long j)
Description copied from class:ULongIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classULongIndexer
-
get
public ULongIndexer get(long i, long j, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classULongIndexer
-
get
public java.math.BigInteger get(long i, long j, long k)
Description copied from class:ULongIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classULongIndexer
-
get
public java.math.BigInteger get(long... indices)
Description copied from class:ULongIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classULongIndexer
-
get
public ULongIndexer get(long[] indices, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classULongIndexer
-
putRaw
public ULongIndexer putRaw(long i, java.math.BigInteger l)
-
put
public ULongIndexer put(long i, java.math.BigInteger l)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(i)] = l
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long i, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long i, long j, java.math.BigInteger l)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long i, long j, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long i, long j, long k, java.math.BigInteger l)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = l
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long[] indices, java.math.BigInteger l)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l
- Specified by:
put
in classULongIndexer
-
put
public ULongIndexer put(long[] indices, java.math.BigInteger[] l, int offset, int length)
Description copied from class:ULongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
- Specified by:
put
in classULongIndexer
-
-