Class LongRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.LongIndexer
org.bytedeco.javacpp.indexer.LongRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
LongPointer using the Raw instance.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longBase address and number of elements accessible.protected LongPointerThe 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 LongIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionLongRawIndexer(LongPointer pointer) CallsLongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).LongRawIndexer(LongPointer pointer, long... sizes) CallsLongRawIndexer(pointer, Index.create(sizes)).LongRawIndexer(LongPointer pointer, long[] sizes, long[] strides) CallsLongRawIndexer(pointer, Index.create(sizes, strides)).LongRawIndexer(LongPointer 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[] l, int offset, int length) Returnsthiswherel[offset:offset + length] = array/buffer[index(indices)]longget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long[] l, int offset, int length) Returnsthiswherel[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[] l, int offset, int length) Returnsthiswherel[offset:offset + length] = array/buffer[index(i, j)]longgetRaw(long i) pointer()Returns the backing pointer, ornullif noneput(long[] indices, long l) Returnsthiswherearray/buffer[index(indices)] = lput(long[] indices, long[] l, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = l[offset:offset + length]put(long i, long l) Returnsthiswherearray/buffer[index(i)] = lput(long i, long[] l, int offset, int length) Returnsthiswherearray/buffer[index(i)] = l[offset:offset + length]put(long i, long j, long l) Returnsthiswherearray/buffer[index(i, j)] = lput(long i, long j, long[] l, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = l[offset:offset + length]put(long i, long j, long k, long l) Returnsthiswherearray/buffer[index(i, j, k)] = lputRaw(long i, long l) 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 LongIndexer
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
-
LongRawIndexer
CallsLongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). -
LongRawIndexer
CallsLongRawIndexer(pointer, Index.create(sizes)). -
LongRawIndexer
CallsLongRawIndexer(pointer, Index.create(sizes, strides)). -
LongRawIndexer
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:LongIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classLongIndexer
-
get
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classLongIndexer
-
get
public long get(long i, long j) Description copied from class:LongIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classLongIndexer
-
get
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classLongIndexer
-
get
public long get(long i, long j, long k) Description copied from class:LongIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classLongIndexer
-
get
public long get(long... indices) Description copied from class:LongIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classLongIndexer
-
get
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classLongIndexer
-
putRaw
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i)] = l- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j)] = l- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j, k)] = l- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(indices)] = l- Specified by:
putin classLongIndexer
-
put
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(indices)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
release
-