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:
java.lang.AutoCloseable
public class UShortRawIndexer extends UShortIndexer
An indexer for aShortPointerusing theRawinstance, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longbaseBase address and number of elements accessible.protected ShortPointerpointerThe backing pointer.protected static RawRAWThe instance for the raw memory interface.(package private) longsizeBase address and number of elements accessible.-
Fields inherited from class org.bytedeco.javacpp.indexer.UShortIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description UShortRawIndexer(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 thepointerandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(long i)Returnsarray/buffer[index(i)]intget(long... indices)Returnsarray/buffer[index(indices)]UShortIndexerget(long[] indices, int[] s, int offset, int length)Returnsthiswheres[offset:offset + length] = array/buffer[index(indices)]UShortIndexerget(long i, int[] s, int offset, int length)Returnsthiswheres[offset:offset + length] = array/buffer[index(i)]intget(long i, long j)Returnsarray/buffer[index(i, j)]UShortIndexerget(long i, long j, int[] s, int offset, int length)Returnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]intget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]intgetRaw(long i)Pointerpointer()Returns the backing pointer, ornullif noneUShortIndexerput(long[] indices, int s)Returnsthiswherearray/buffer[index(indices)] = sUShortIndexerput(long[] indices, int[] s, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]UShortIndexerput(long i, int s)Returnsthiswherearray/buffer[index(i)] = sUShortIndexerput(long i, int[] s, int offset, int length)Returnsthiswherearray/buffer[index(i)] = s[offset:offset + length]UShortIndexerput(long i, long j, int s)Returnsthiswherearray/buffer[index(i, j)] = sUShortIndexerput(long i, long j, int[] s, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]UShortIndexerput(long i, long j, long k, int s)Returnsthiswherearray/buffer[index(i, j, k)] = sUShortIndexerputRaw(long i, int s)UShortIndexerreindex(Index index)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 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 Detail
-
RAW
protected static final Raw RAW
The instance for the raw memory interface.
-
pointer
protected ShortPointer 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
-
UShortRawIndexer
public UShortRawIndexer(ShortPointer pointer)
CallsUShortRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
-
UShortRawIndexer
public UShortRawIndexer(ShortPointer pointer, long... sizes)
CallsUShortRawIndexer(pointer, Index.create(sizes)).
-
UShortRawIndexer
public UShortRawIndexer(ShortPointer pointer, long[] sizes, long[] strides)
CallsUShortRawIndexer(pointer, Index.create(sizes, strides)).
-
UShortRawIndexer
public UShortRawIndexer(ShortPointer pointer, Index index)
Constructor to set thepointerandIndexer.index.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:IndexerReturns the backing pointer, ornullif none
-
reindex
public UShortIndexer reindex(Index index)
Description copied from class:IndexerReturns 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:UShortIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUShortIndexer
-
get
public UShortIndexer get(long i, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classUShortIndexer
-
get
public int get(long i, long j)Description copied from class:UShortIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classUShortIndexer
-
get
public UShortIndexer get(long i, long j, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classUShortIndexer
-
get
public int get(long i, long j, long k)Description copied from class:UShortIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classUShortIndexer
-
get
public int get(long... indices)
Description copied from class:UShortIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classUShortIndexer
-
get
public UShortIndexer get(long[] indices, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUShortIndexer
-
putRaw
public UShortIndexer putRaw(long i, int s)
-
put
public UShortIndexer put(long i, int s)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i)] = s- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long i, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long i, long j, int s)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long i, long j, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long i, long j, long k, int s)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(i, j, k)] = s- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long[] indices, int s)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(indices)] = s- Specified by:
putin classUShortIndexer
-
put
public UShortIndexer put(long[] indices, int[] s, int offset, int length)
Description copied from class:UShortIndexerReturnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]- Specified by:
putin classUShortIndexer
-
-