Package org.bytedeco.javacpp.indexer
Class ShortRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.ShortIndexer
org.bytedeco.javacpp.indexer.ShortRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
ShortPointer using the Raw instance.- Author:
- Samuel Audet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ShortPointerThe backing pointer.protected static final org.bytedeco.javacpp.indexer.RawThe instance for the raw memory interface.Fields inherited from class org.bytedeco.javacpp.indexer.ShortIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionShortRawIndexer(ShortPointer pointer) CallsShortRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).ShortRawIndexer(ShortPointer pointer, long... sizes) CallsShortRawIndexer(pointer, Index.create(sizes)).ShortRawIndexer(ShortPointer pointer, long[] sizes, long[] strides) CallsShortRawIndexer(pointer, Index.create(sizes, strides)).ShortRawIndexer(ShortPointer pointer, Index index) Constructor to set thepointerandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionshortget(long i) Returnsarray/buffer[index(i)]shortget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, short[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(indices)]shortget(long i, long j) Returnsarray/buffer[index(i, j)]shortget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]get(long i, long j, short[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]get(long i, short[] s, int offset, int length) Returnsthiswheres[offset:offset + length] = array/buffer[index(i)]shortgetRaw(long i) pointer()Returns the backing pointer, ornullif noneput(long[] indices, short s) Returnsthiswherearray/buffer[index(indices)] = sput(long[] indices, short[] s, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]put(long i, long j, long k, short s) Returnsthiswherearray/buffer[index(i, j, k)] = sput(long i, long j, short s) Returnsthiswherearray/buffer[index(i, j)] = sput(long i, long j, short[] s, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]put(long i, short s) Returnsthiswherearray/buffer[index(i)] = sput(long i, short[] s, int offset, int length) Returnsthiswherearray/buffer[index(i)] = s[offset:offset + length]putRaw(long i, short s) 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.ShortIndexer
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
protected static final org.bytedeco.javacpp.indexer.Raw RAWThe instance for the raw memory interface. -
pointer
The backing pointer.
-
-
Constructor Details
-
ShortRawIndexer
CallsShortRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). -
ShortRawIndexer
CallsShortRawIndexer(pointer, Index.create(sizes)). -
ShortRawIndexer
CallsShortRawIndexer(pointer, Index.create(sizes, strides)). -
ShortRawIndexer
Constructor to set thepointerandIndexer.index.
-
-
Method Details
-
pointer
Description copied from class:IndexerReturns the backing pointer, ornullif none -
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
getRaw
public short getRaw(long i) -
get
public short get(long i) Description copied from class:ShortIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classShortIndexer
-
get
Description copied from class:ShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classShortIndexer
-
get
public short get(long i, long j) Description copied from class:ShortIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classShortIndexer
-
get
Description copied from class:ShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classShortIndexer
-
get
public short get(long i, long j, long k) Description copied from class:ShortIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classShortIndexer
-
get
public short get(long... indices) Description copied from class:ShortIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classShortIndexer
-
get
Description copied from class:ShortIndexerReturnsthiswheres[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classShortIndexer
-
putRaw
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(i)] = s- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(i)] = s[offset:offset + length]- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(i, j)] = s[offset:offset + length]- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(i, j, k)] = s- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(indices)] = s- Specified by:
putin classShortIndexer
-
put
Description copied from class:ShortIndexerReturnsthiswherearray/buffer[index(indices)] = s[offset:offset + length]- Specified by:
putin classShortIndexer
-
release
public void release()Description copied from class:IndexerMakes sure changes are reflected onto the backing memory and clears any references.
-