public class CharRawIndexer extends CharIndexer
CharPointer
using the Raw
instance.Modifier and Type | Field and Description |
---|---|
(package private) long |
base
Base address and number of elements accessible.
|
protected CharPointer |
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.
|
VALUE_BYTES
indexable, ONE_STRIDE, sizes, strides
Constructor and Description |
---|
CharRawIndexer(CharPointer pointer)
Calls
CharRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 }) . |
CharRawIndexer(CharPointer pointer,
long... sizes)
Calls
CharRawIndexer(pointer, sizes, strides(sizes)) . |
CharRawIndexer(CharPointer pointer,
long[] sizes,
long[] strides)
|
Modifier and Type | Method and Description |
---|---|
char |
get(long... indices)
Returns
array/buffer[index(indices)] |
char |
get(long i)
Returns
array/buffer[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[i] |
char |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
CharIndexer |
get(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[i * strides[0] + j] |
char |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
Pointer |
pointer()
Returns the backing pointer, or
null if none |
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[i] = c |
CharIndexer |
put(long i,
char[] c,
int offset,
int length)
Returns
this where array/buffer[i] = c[offset:offset + length] |
CharIndexer |
put(long i,
long j,
char c)
Returns
this where array/buffer[i * strides[0] + j] = c |
CharIndexer |
put(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = c[offset:offset + length] |
CharIndexer |
put(long i,
long j,
long k,
char c)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = c |
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, get, get, get, getDouble, put, put, put, putDouble
protected static final Raw RAW
protected CharPointer pointer
final long base
final long size
public CharRawIndexer(CharPointer pointer)
CharRawIndexer(pointer, { pointer.limit() - pointer.position() }, { 1 })
.public CharRawIndexer(CharPointer pointer, long... sizes)
CharRawIndexer(pointer, sizes, strides(sizes))
.public CharRawIndexer(CharPointer pointer, long[] sizes, long[] strides)
public Pointer pointer()
Indexer
null
if nonepublic char get(long i)
CharIndexer
array/buffer[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[i]
get
in class CharIndexer
public char get(long i, long j)
CharIndexer
array/buffer[i * strides[0] + 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[i * strides[0] + j]
get
in class CharIndexer
public char get(long i, long j, long k)
CharIndexer
array/buffer[i * strides[0] + j * strides[1] + 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[i] = c
put
in class CharIndexer
public CharIndexer put(long i, char[] c, int offset, int length)
CharIndexer
this
where array/buffer[i] = c[offset:offset + length]
put
in class CharIndexer
public CharIndexer put(long i, long j, char c)
CharIndexer
this
where array/buffer[i * strides[0] + j] = c
put
in class CharIndexer
public CharIndexer put(long i, long j, char[] c, int offset, int length)
CharIndexer
this
where array/buffer[i * strides[0] + 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[i * strides[0] + j * strides[1] + 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 © 2020. All rights reserved.