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 aBytePointerusing theRawinstance, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longbaseBase address and number of elements accessible.protected BytePointerpointerThe 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.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 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)]UByteIndexerget(long[] indices, int[] b, int offset, int length)Returnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]UByteIndexerget(long i, int[] b, int offset, int length)Returnsthiswhereb[offset:offset + length] = array/buffer[index(i)]intget(long i, long j)Returnsarray/buffer[index(i, j)]UByteIndexerget(long i, long j, int[] b, int offset, int length)Returnsthiswhereb[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 noneUByteIndexerput(long[] indices, int b)Returnsthiswherearray/buffer[index(indices)] = bUByteIndexerput(long[] indices, int[] b, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]UByteIndexerput(long i, int b)Returnsthiswherearray/buffer[index(i)] = bUByteIndexerput(long i, int[] b, int offset, int length)Returnsthiswherearray/buffer[index(i)] = b[offset:offset + length]UByteIndexerput(long i, long j, int b)Returnsthiswherearray/buffer[index(i, j)] = bUByteIndexerput(long i, long j, int[] b, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]UByteIndexerput(long i, long j, long k, int b)Returnsthiswherearray/buffer[index(i, j, k)] = bUByteIndexerputRaw(long i, int b)UByteIndexerreindex(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.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 thepointerandIndexer.index.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:IndexerReturns the backing pointer, ornullif none
-
reindex
public UByteIndexer 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:UByteIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUByteIndexer
-
get
public UByteIndexer get(long i, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classUByteIndexer
-
get
public int get(long i, long j)Description copied from class:UByteIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classUByteIndexer
-
get
public UByteIndexer get(long i, long j, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classUByteIndexer
-
get
public int get(long i, long j, long k)Description copied from class:UByteIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classUByteIndexer
-
get
public int get(long... indices)
Description copied from class:UByteIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classUByteIndexer
-
get
public UByteIndexer get(long[] indices, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUByteIndexer
-
putRaw
public UByteIndexer putRaw(long i, int b)
-
put
public UByteIndexer put(long i, int b)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i)] = b- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long i, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long i, long j, int b)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j)] = b- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long i, long j, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long i, long j, long k, int b)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j, k)] = b- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long[] indices, int b)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(indices)] = b- Specified by:
putin classUByteIndexer
-
put
public UByteIndexer put(long[] indices, int[] b, int offset, int length)
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
-