Package org.bytedeco.javacpp.indexer
Class UByteRawIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.UByteIndexer
-
- org.bytedeco.javacpp.indexer.UByteRawIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class UByteRawIndexer extends UByteIndexer
An indexer for aBytePointer
using theRaw
instance, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
base
Base address and number of elements accessible.protected BytePointer
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.UByteIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description UByteRawIndexer(BytePointer pointer)
CallsUByteRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.UByteRawIndexer(BytePointer pointer, long... sizes)
CallsUByteRawIndexer(pointer, Index.create(sizes))
.UByteRawIndexer(BytePointer pointer, long[] sizes, long[] strides)
CallsUByteRawIndexer(pointer, Index.create(sizes, strides))
.UByteRawIndexer(BytePointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(long i)
Returnsarray/buffer[index(i)]
int
get(long... indices)
Returnsarray/buffer[index(indices)]
UByteIndexer
get(long[] indices, int[] b, int offset, int length)
Returnsthis
whereb[offset:offset + length] = array/buffer[index(indices)]
UByteIndexer
get(long i, int[] b, int offset, int length)
Returnsthis
whereb[offset:offset + length] = array/buffer[index(i)]
int
get(long i, long j)
Returnsarray/buffer[index(i, j)]
UByteIndexer
get(long i, long j, int[] b, int offset, int length)
Returnsthis
whereb[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
pointer()
Returns the backing pointer, ornull
if noneUByteIndexer
put(long[] indices, int b)
Returnsthis
wherearray/buffer[index(indices)] = b
UByteIndexer
put(long[] indices, int[] b, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = b[offset:offset + length]
UByteIndexer
put(long i, int b)
Returnsthis
wherearray/buffer[index(i)] = b
UByteIndexer
put(long i, int[] b, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = b[offset:offset + length]
UByteIndexer
put(long i, long j, int b)
Returnsthis
wherearray/buffer[index(i, j)] = b
UByteIndexer
put(long i, long j, int[] b, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = b[offset:offset + length]
UByteIndexer
put(long i, long j, long k, int b)
Returnsthis
wherearray/buffer[index(i, j, k)] = b
UByteIndexer
putRaw(long i, int b)
UByteIndexer
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.UByteIndexer
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 BytePointer 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
-
UByteRawIndexer
public UByteRawIndexer(BytePointer pointer)
CallsUByteRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.
-
UByteRawIndexer
public UByteRawIndexer(BytePointer pointer, long... sizes)
CallsUByteRawIndexer(pointer, Index.create(sizes))
.
-
UByteRawIndexer
public UByteRawIndexer(BytePointer pointer, long[] sizes, long[] strides)
CallsUByteRawIndexer(pointer, Index.create(sizes, strides))
.
-
UByteRawIndexer
public UByteRawIndexer(BytePointer 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 UByteIndexer reindex(Index index)
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:UByteIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classUByteIndexer
-
get
public UByteIndexer get(long i, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classUByteIndexer
-
get
public int get(long i, long j)
Description copied from class:UByteIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classUByteIndexer
-
get
public UByteIndexer get(long i, long j, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classUByteIndexer
-
get
public int get(long i, long j, long k)
Description copied from class:UByteIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classUByteIndexer
-
get
public int get(long... indices)
Description copied from class:UByteIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classUByteIndexer
-
get
public UByteIndexer get(long[] indices, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classUByteIndexer
-
putRaw
public UByteIndexer putRaw(long i, int b)
-
put
public UByteIndexer put(long i, int b)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(i)] = b
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long i, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(i)] = b[offset:offset + length]
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long i, long j, int b)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(i, j)] = b
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long i, long j, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(i, j)] = b[offset:offset + length]
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long i, long j, long k, int b)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = b
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long[] indices, int b)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(indices)] = b
- Specified by:
put
in classUByteIndexer
-
put
public UByteIndexer put(long[] indices, int[] b, int offset, int length)
Description copied from class:UByteIndexer
Returnsthis
wherearray/buffer[index(indices)] = b[offset:offset + length]
- Specified by:
put
in classUByteIndexer
-
-