Package org.bytedeco.javacpp.indexer
Class CharRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.CharIndexer
org.bytedeco.javacpp.indexer.CharRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
CharPointer using the Raw instance.- Author:
- Samuel Audet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CharPointerThe backing pointer.protected static final org.bytedeco.javacpp.indexer.RawThe instance for the raw memory interface.Fields inherited from class org.bytedeco.javacpp.indexer.CharIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionCharRawIndexer(CharPointer pointer) CallsCharRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).CharRawIndexer(CharPointer pointer, long... sizes) CallsCharRawIndexer(pointer, Index.create(sizes)).CharRawIndexer(CharPointer pointer, long[] sizes, long[] strides) CallsCharRawIndexer(pointer, Index.create(sizes, strides)).CharRawIndexer(CharPointer pointer, Index index) Constructor to set thepointerandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptioncharget(long i) Returnsarray/buffer[index(i)]charget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, char[] c, int offset, int length) Returnsthiswherec[offset:offset + length] = array/buffer[index(indices)]get(long i, char[] c, int offset, int length) Returnsthiswherec[offset:offset + length] = array/buffer[index(i)]charget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long j, char[] c, int offset, int length) Returnsthiswherec[offset:offset + length] = array/buffer[index(i, j)]charget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]chargetRaw(long i) pointer()Returns the backing pointer, ornullif noneput(long[] indices, char c) Returnsthiswherearray/buffer[index(indices)] = cput(long[] indices, char[] c, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = c[offset:offset + length]put(long i, char c) Returnsthiswherearray/buffer[index(i)] = cput(long i, char[] c, int offset, int length) Returnsthiswherearray/buffer[index(i)] = c[offset:offset + length]put(long i, long j, char c) Returnsthiswherearray/buffer[index(i, j)] = cput(long i, long j, char[] c, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = c[offset:offset + length]put(long i, long j, long k, char c) Returnsthiswherearray/buffer[index(i, j, k)] = cputRaw(long i, char c) 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.CharIndexer
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
-
CharRawIndexer
CallsCharRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). -
CharRawIndexer
CallsCharRawIndexer(pointer, Index.create(sizes)). -
CharRawIndexer
CallsCharRawIndexer(pointer, Index.create(sizes, strides)). -
CharRawIndexer
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 char getRaw(long i) -
get
public char get(long i) Description copied from class:CharIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classCharIndexer
-
get
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classCharIndexer
-
get
public char get(long i, long j) Description copied from class:CharIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classCharIndexer
-
get
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classCharIndexer
-
get
public char get(long i, long j, long k) Description copied from class:CharIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classCharIndexer
-
get
public char get(long... indices) Description copied from class:CharIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classCharIndexer
-
get
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classCharIndexer
-
putRaw
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i)] = c- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j)] = c- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j, k)] = c- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(indices)] = c- Specified by:
putin classCharIndexer
-
put
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(indices)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
release
public void release()Description copied from class:IndexerMakes sure changes are reflected onto the backing memory and clears any references.
-