Package org.bytedeco.javacpp.indexer
Class UByteArrayIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.UByteIndexer
-
- org.bytedeco.javacpp.indexer.UByteArrayIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class UByteArrayIndexer extends UByteIndexer
An indexer for abyte[]array, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]arrayThe backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.UByteIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description UByteArrayIndexer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]array()Returns the backing array, ornullif noneintget(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)]UByteIndexerput(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)] = bUByteIndexerreindex(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
-
-
-
-
Constructor Detail
-
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
public UByteArrayIndexer(byte[] array, Index index)Constructor to set thearrayandIndexer.index.
-
-
Method Detail
-
array
public byte[] array()
Description copied from class:IndexerReturns the backing array, 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.
-
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
-
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
-
-