public class CharBufferIndexer extends CharIndexer
CharBuffer.| Modifier and Type | Field and Description |
|---|---|
protected CharBuffer |
buffer
The backing buffer.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
CharBufferIndexer(CharBuffer buffer)
Calls
CharBufferIndexer(buffer, { buffer.limit() }, { 1 }). |
CharBufferIndexer(CharBuffer buffer,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer()
Returns the backing buffer, or
null if none |
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] |
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, get, get, get, getDouble, put, put, put, putDoubleprotected CharBuffer buffer
public CharBufferIndexer(CharBuffer buffer)
CharBufferIndexer(buffer, { buffer.limit() }, { 1 }).public CharBufferIndexer(CharBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
Indexernull if nonepublic char get(long i)
CharIndexerarray/buffer[i]get in class CharIndexerpublic CharIndexer get(long i, char[] c, int offset, int length)
CharIndexerthis where c[offset:offset + length] = array/buffer[i]get in class CharIndexerpublic char get(long i,
long j)
CharIndexerarray/buffer[i * strides[0] + j]get in class CharIndexerpublic CharIndexer get(long i, long j, char[] c, int offset, int length)
CharIndexerthis where c[offset:offset + length] = array/buffer[i * strides[0] + j]get in class CharIndexerpublic char get(long i,
long j,
long k)
CharIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class CharIndexerpublic char get(long... indices)
CharIndexerarray/buffer[index(indices)]get in class CharIndexerpublic CharIndexer get(long[] indices, char[] c, int offset, int length)
CharIndexerthis where c[offset:offset + length] = array/buffer[index(indices)]get in class CharIndexerpublic CharIndexer put(long i, char c)
CharIndexerthis where array/buffer[i] = cput in class CharIndexerpublic CharIndexer put(long i, char[] c, int offset, int length)
CharIndexerthis where array/buffer[i] = c[offset:offset + length]put in class CharIndexerpublic CharIndexer put(long i, long j, char c)
CharIndexerthis where array/buffer[i * strides[0] + j] = cput in class CharIndexerpublic CharIndexer put(long i, long j, char[] c, int offset, int length)
CharIndexerthis where array/buffer[i * strides[0] + j] = c[offset:offset + length]put in class CharIndexerpublic CharIndexer put(long i, long j, long k, char c)
CharIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = cput in class CharIndexerpublic CharIndexer put(long[] indices, char c)
CharIndexerthis where array/buffer[index(indices)] = cput in class CharIndexerpublic CharIndexer put(long[] indices, char[] c, int offset, int length)
CharIndexerthis where array/buffer[index(indices)] = c[offset:offset + length]put in class CharIndexerCopyright © 2016. All rights reserved.