public class CharArrayIndexer extends CharIndexer
char[]
array.Modifier and Type | Field and Description |
---|---|
protected char[] |
array
The backing array.
|
VALUE_BYTES
Constructor and Description |
---|
CharArrayIndexer(char[] array)
Calls
CharArrayIndexer(array, Index.create(array.length)) . |
CharArrayIndexer(char[] array,
Index index)
Constructor to set the
array and Indexer.index . |
CharArrayIndexer(char[] array,
long... sizes)
Calls
CharArrayIndexer(array, Index.create(sizes)) . |
CharArrayIndexer(char[] array,
long[] sizes,
long[] strides)
Calls
CharArrayIndexer(array, Index.create(sizes, strides)) . |
Modifier and Type | Method and Description |
---|---|
char[] |
array()
Returns the backing array, or
null if none |
char |
get(long... indices)
Returns
array/buffer[index(indices)] |
char |
get(long i)
Returns
array/buffer[index(i)] |
CharIndexer |
get(long[] indices,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(indices)] |
CharIndexer |
get(long i,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(i)] |
char |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
CharIndexer |
get(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(i, j)] |
char |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
CharIndexer |
put(long[] indices,
char c)
Returns
this where array/buffer[index(indices)] = c |
CharIndexer |
put(long[] indices,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = c[offset:offset + length] |
CharIndexer |
put(long i,
char c)
Returns
this where array/buffer[index(i)] = c |
CharIndexer |
put(long i,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(i)] = c[offset:offset + length] |
CharIndexer |
put(long i,
long j,
char c)
Returns
this where array/buffer[index(i, j)] = c |
CharIndexer |
put(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = c[offset:offset + length] |
CharIndexer |
put(long i,
long j,
long k,
char c)
Returns
this where array/buffer[index(i, j, k)] = 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.
|
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
public CharArrayIndexer(char[] array)
CharArrayIndexer(array, Index.create(array.length))
.public CharArrayIndexer(char[] array, long... sizes)
CharArrayIndexer(array, Index.create(sizes))
.public CharArrayIndexer(char[] array, long[] sizes, long[] strides)
CharArrayIndexer(array, Index.create(sizes, strides))
.public CharArrayIndexer(char[] array, Index index)
array
and Indexer.index
.public char[] array()
Indexer
null
if nonepublic CharIndexer reindex(Index index)
Indexer
public char get(long i)
CharIndexer
array/buffer[index(i)]
get
in class CharIndexer
public CharIndexer get(long i, char[] c, int offset, int length)
CharIndexer
this
where c[offset:offset + length] = array/buffer[index(i)]
get
in class CharIndexer
public char get(long i, long j)
CharIndexer
array/buffer[index(i, j)]
get
in class CharIndexer
public CharIndexer get(long i, long j, char[] c, int offset, int length)
CharIndexer
this
where c[offset:offset + length] = array/buffer[index(i, j)]
get
in class CharIndexer
public char get(long i, long j, long k)
CharIndexer
array/buffer[index(i, j, k)]
get
in class CharIndexer
public char get(long... indices)
CharIndexer
array/buffer[index(indices)]
get
in class CharIndexer
public CharIndexer get(long[] indices, char[] c, int offset, int length)
CharIndexer
this
where c[offset:offset + length] = array/buffer[index(indices)]
get
in class CharIndexer
public CharIndexer put(long i, char c)
CharIndexer
this
where array/buffer[index(i)] = c
put
in class CharIndexer
public CharIndexer put(long i, char[] c, int offset, int length)
CharIndexer
this
where array/buffer[index(i)] = c[offset:offset + length]
put
in class CharIndexer
public CharIndexer put(long i, long j, char c)
CharIndexer
this
where array/buffer[index(i, j)] = c
put
in class CharIndexer
public CharIndexer put(long i, long j, char[] c, int offset, int length)
CharIndexer
this
where array/buffer[index(i, j)] = c[offset:offset + length]
put
in class CharIndexer
public CharIndexer put(long i, long j, long k, char c)
CharIndexer
this
where array/buffer[index(i, j, k)] = c
put
in class CharIndexer
public CharIndexer put(long[] indices, char c)
CharIndexer
this
where array/buffer[index(indices)] = c
put
in class CharIndexer
public CharIndexer put(long[] indices, char[] c, int offset, int length)
CharIndexer
this
where array/buffer[index(indices)] = c[offset:offset + length]
put
in class CharIndexer
Copyright © 2024. All rights reserved.