Class UIntRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UIntIndexer
org.bytedeco.javacpp.indexer.UIntRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
IntPointer using the Raw instance, treated as unsigned.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longBase address and number of elements accessible.protected IntPointerThe backing pointer.protected static final RawThe instance for the raw memory interface.(package private) final longBase address and number of elements accessible.Fields inherited from class UIntIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionUIntRawIndexer(IntPointer pointer) CallsUIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).UIntRawIndexer(IntPointer pointer, long... sizes) CallsUIntRawIndexer(pointer, Index.create(sizes)).UIntRawIndexer(IntPointer pointer, long[] sizes, long[] strides) CallsUIntRawIndexer(pointer, Index.create(sizes, strides)).UIntRawIndexer(IntPointer pointer, Index index) Constructor to set thepointerandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionlongget(long i) Returnsarray/buffer[index(i)]longget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, long[] m, int offset, int length) Returnsthiswheren[offset:offset + length] = array/buffer[index(indices)]longget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long[] m, int offset, int length) Returnsthiswheren[offset:offset + length] = array/buffer[index(i)]longget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]get(long i, long j, long[] m, int offset, int length) Returnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]longgetRaw(long i) pointer()Returns the backing pointer, ornullif noneput(long[] indices, long n) Returnsthiswherearray/buffer[index(indices)] = nput(long[] indices, long[] m, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]put(long i, long n) Returnsthiswherearray/buffer[index(i)] = nput(long i, long[] m, int offset, int length) Returnsthiswherearray/buffer[index(i)] = n[offset:offset + length]put(long i, long j, long n) Returnsthiswherearray/buffer[index(i, j)] = nput(long i, long j, long[] m, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]put(long i, long j, long k, long n) Returnsthiswherearray/buffer[index(i, j, k)] = nputRaw(long i, long n) Returns a new Indexer using the same data, but with a different Index.voidrelease()Makes sure changes are reflected onto the backing memory and clears any references.Methods inherited from class UIntIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
RAW
The instance for the raw memory interface. -
pointer
The backing pointer. -
base
final long baseBase address and number of elements accessible. -
size
final long sizeBase address and number of elements accessible.
-
-
Constructor Details
-
UIntRawIndexer
CallsUIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). -
UIntRawIndexer
CallsUIntRawIndexer(pointer, Index.create(sizes)). -
UIntRawIndexer
CallsUIntRawIndexer(pointer, Index.create(sizes, strides)). -
UIntRawIndexer
Constructor to set thepointerandIndexer.index.
-
-
Method Details
-
pointer
-
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
getRaw
public long getRaw(long i) -
get
public long get(long i) Description copied from class:UIntIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUIntIndexer
-
get
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classUIntIndexer
-
get
public long get(long i, long j) Description copied from class:UIntIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classUIntIndexer
-
get
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classUIntIndexer
-
get
public long get(long i, long j, long k) Description copied from class:UIntIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classUIntIndexer
-
get
public long get(long... indices) Description copied from class:UIntIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classUIntIndexer
-
get
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUIntIndexer
-
putRaw
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i)] = n- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j)] = n- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j, k)] = n- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(indices)] = n- Specified by:
putin classUIntIndexer
-
put
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
release
-