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:
java.lang.AutoCloseable
public class CharRawIndexer extends CharIndexer
An indexer for aCharPointer
using theRaw
instance.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
base
Base address and number of elements accessible.protected CharPointer
pointer
The backing pointer.protected static Raw
RAW
The instance for the raw memory interface.(package private) long
size
Base address and number of elements accessible.-
Fields inherited from class org.bytedeco.javacpp.indexer.CharIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description CharRawIndexer(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 thepointer
andIndexer.index
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
get(long i)
Returnsarray/buffer[index(i)]
char
get(long... indices)
Returnsarray/buffer[index(indices)]
CharIndexer
get(long[] indices, char[] c, int offset, int length)
Returnsthis
wherec[offset:offset + length] = array/buffer[index(indices)]
CharIndexer
get(long i, char[] c, int offset, int length)
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i)]
char
get(long i, long j)
Returnsarray/buffer[index(i, j)]
CharIndexer
get(long i, long j, char[] c, int offset, int length)
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i, j)]
char
get(long i, long j, long k)
Returnsarray/buffer[index(i, j, k)]
char
getRaw(long i)
Pointer
pointer()
Returns the backing pointer, ornull
if noneCharIndexer
put(long[] indices, char c)
Returnsthis
wherearray/buffer[index(indices)] = c
CharIndexer
put(long[] indices, char[] c, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = c[offset:offset + length]
CharIndexer
put(long i, char c)
Returnsthis
wherearray/buffer[index(i)] = c
CharIndexer
put(long i, char[] c, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = c[offset:offset + length]
CharIndexer
put(long i, long j, char c)
Returnsthis
wherearray/buffer[index(i, j)] = c
CharIndexer
put(long i, long j, char[] c, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = c[offset:offset + length]
CharIndexer
put(long i, long j, long k, char c)
Returnsthis
wherearray/buffer[index(i, j, k)] = c
CharIndexer
putRaw(long i, char c)
CharIndexer
reindex(Index index)
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.CharIndexer
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 CharPointer 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
-
CharRawIndexer
public CharRawIndexer(CharPointer pointer)
CallsCharRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.
-
CharRawIndexer
public CharRawIndexer(CharPointer pointer, long... sizes)
CallsCharRawIndexer(pointer, Index.create(sizes))
.
-
CharRawIndexer
public CharRawIndexer(CharPointer pointer, long[] sizes, long[] strides)
CallsCharRawIndexer(pointer, Index.create(sizes, strides))
.
-
CharRawIndexer
public CharRawIndexer(CharPointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:Indexer
Returns the backing pointer, ornull
if none
-
reindex
public CharIndexer reindex(Index index)
Description copied from class:Indexer
Returns 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:CharIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classCharIndexer
-
get
public CharIndexer get(long i, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long i, long j)
Description copied from class:CharIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classCharIndexer
-
get
public CharIndexer get(long i, long j, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long i, long j, long k)
Description copied from class:CharIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long... indices)
Description copied from class:CharIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classCharIndexer
-
get
public CharIndexer get(long[] indices, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classCharIndexer
-
putRaw
public CharIndexer putRaw(long i, char c)
-
put
public CharIndexer put(long i, char c)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i)] = c
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long i, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long i, long j, char c)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j)] = c
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long i, long j, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long i, long j, long k, char c)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = c
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long[] indices, char c)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(indices)] = c
- Specified by:
put
in classCharIndexer
-
put
public CharIndexer put(long[] indices, char[] c, int offset, int length)
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(indices)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
-