Package org.bytedeco.javacpp.indexer
Class UShortRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UShortIndexer
org.bytedeco.javacpp.indexer.UShortRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
ShortPointer
using the Raw
instance, treated as unsigned.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long
Base address and number of elements accessible.protected ShortPointer
The backing pointer.protected static final Raw
The instance for the raw memory interface.(package private) final long
Base address and number of elements accessible.Fields inherited from class org.bytedeco.javacpp.indexer.UShortIndexer
VALUE_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionUShortRawIndexer
(ShortPointer pointer) CallsUShortRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.UShortRawIndexer
(ShortPointer pointer, long... sizes) CallsUShortRawIndexer(pointer, Index.create(sizes))
.UShortRawIndexer
(ShortPointer pointer, long[] sizes, long[] strides) CallsUShortRawIndexer(pointer, Index.create(sizes, strides))
.UShortRawIndexer
(ShortPointer pointer, Index index) Constructor to set thepointer
andIndexer.index
. -
Method Summary
Modifier and TypeMethodDescriptionint
get
(long i) Returnsarray/buffer[index(i)]
int
get
(long... indices) Returnsarray/buffer[index(indices)]
get
(long[] indices, int[] s, int offset, int length) Returnsthis
wheres[offset:offset + length] = array/buffer[index(indices)]
get
(long i, int[] s, int offset, int length) Returnsthis
wheres[offset:offset + length] = array/buffer[index(i)]
int
get
(long i, long j) Returnsarray/buffer[index(i, j)]
get
(long i, long j, int[] s, int offset, int length) Returnsthis
wheres[offset:offset + length] = array/buffer[index(i, j)]
int
get
(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]
int
getRaw
(long i) pointer()
Returns the backing pointer, ornull
if noneput
(long[] indices, int s) Returnsthis
wherearray/buffer[index(indices)] = s
put
(long[] indices, int[] s, int offset, int length) Returnsthis
wherearray/buffer[index(indices)] = s[offset:offset + length]
put
(long i, int s) Returnsthis
wherearray/buffer[index(i)] = s
put
(long i, int[] s, int offset, int length) Returnsthis
wherearray/buffer[index(i)] = s[offset:offset + length]
put
(long i, long j, int s) Returnsthis
wherearray/buffer[index(i, j)] = s
put
(long i, long j, int[] s, int offset, int length) Returnsthis
wherearray/buffer[index(i, j)] = s[offset:offset + length]
put
(long i, long j, long k, int s) Returnsthis
wherearray/buffer[index(i, j, k)] = s
putRaw
(long i, int s) 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.UShortIndexer
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
-
UShortRawIndexer
CallsUShortRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
. -
UShortRawIndexer
CallsUShortRawIndexer(pointer, Index.create(sizes))
. -
UShortRawIndexer
CallsUShortRawIndexer(pointer, Index.create(sizes, strides))
. -
UShortRawIndexer
Constructor to set thepointer
andIndexer.index
.
-
-
Method Details
-
pointer
Description copied from class:Indexer
Returns the backing pointer, ornull
if none -
reindex
Description copied from class:Indexer
Returns a new Indexer using the same data, but with a different Index. -
getRaw
public int getRaw(long i) -
get
public int get(long i) Description copied from class:UShortIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classUShortIndexer
-
get
Description copied from class:UShortIndexer
Returnsthis
wheres[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classUShortIndexer
-
get
public int get(long i, long j) Description copied from class:UShortIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classUShortIndexer
-
get
Description copied from class:UShortIndexer
Returnsthis
wheres[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classUShortIndexer
-
get
public int get(long i, long j, long k) Description copied from class:UShortIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classUShortIndexer
-
get
public int get(long... indices) Description copied from class:UShortIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classUShortIndexer
-
get
Description copied from class:UShortIndexer
Returnsthis
wheres[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classUShortIndexer
-
putRaw
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(i)] = s
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(i)] = s[offset:offset + length]
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(i, j)] = s
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(i, j)] = s[offset:offset + length]
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = s
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(indices)] = s
- Specified by:
put
in classUShortIndexer
-
put
Description copied from class:UShortIndexer
Returnsthis
wherearray/buffer[index(indices)] = s[offset:offset + length]
- Specified by:
put
in classUShortIndexer
-
release
public void release()Description copied from class:Indexer
Makes sure changes are reflected onto the backing memory and clears any references.
-