Class UByteArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UByteIndexer
org.bytedeco.javacpp.indexer.UByteArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
byte[] array, treated as unsigned.-
Field Summary
FieldsFields inherited from class UByteIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionUByteArrayIndexer(byte[] array) CallsUByteArrayIndexer(array, Index.create(array.length)).UByteArrayIndexer(byte[] array, long... sizes) CallsUByteArrayIndexer(array, Index.create(sizes)).UByteArrayIndexer(byte[] array, long[] sizes, long[] strides) CallsUByteArrayIndexer(array, Index.create(sizes, strides)).UByteArrayIndexer(byte[] array, Index index) Constructor to set thearrayandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]array()Returns the backing array, ornullif noneintget(long i) Returnsarray/buffer[index(i)]intget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, int[] b, int offset, int length) Returnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]get(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)]get(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)]put(long[] indices, int b) Returnsthiswherearray/buffer[index(indices)] = bput(long[] indices, int[] b, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]put(long i, int b) Returnsthiswherearray/buffer[index(i)] = bput(long i, int[] b, int offset, int length) Returnsthiswherearray/buffer[index(i)] = b[offset:offset + length]put(long i, long j, int b) Returnsthiswherearray/buffer[index(i, j)] = bput(long i, long j, int[] b, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]put(long i, long j, long k, int b) Returnsthiswherearray/buffer[index(i, j, k)] = bReturns 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 UByteIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
array
protected byte[] arrayThe backing array.
-
-
Constructor Details
-
UByteArrayIndexer
public UByteArrayIndexer(byte[] array) CallsUByteArrayIndexer(array, Index.create(array.length)). -
UByteArrayIndexer
public UByteArrayIndexer(byte[] array, long... sizes) CallsUByteArrayIndexer(array, Index.create(sizes)). -
UByteArrayIndexer
public UByteArrayIndexer(byte[] array, long[] sizes, long[] strides) CallsUByteArrayIndexer(array, Index.create(sizes, strides)). -
UByteArrayIndexer
Constructor to set thearrayandIndexer.index.
-
-
Method Details
-
array
-
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
get
public int get(long i) Description copied from class:UByteIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUByteIndexer
-
get
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
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
Description copied from class:UByteIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i)] = b- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j)] = b- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(i, j, k)] = b- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(indices)] = b- Specified by:
putin classUByteIndexer
-
put
Description copied from class:UByteIndexerReturnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]- Specified by:
putin classUByteIndexer
-
release
-