public class CharBufferIndexer extends CharIndexer
CharBuffer.| Modifier and Type | Field and Description |
|---|---|
protected CharBuffer |
buffer
The backing buffer.
|
| Constructor and Description |
|---|
CharBufferIndexer(CharBuffer buffer,
int[] sizes,
int[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer() |
char |
get(int... indices) |
char |
get(int i) |
CharIndexer |
get(int[] indices,
char[] c,
int offset,
int length) |
CharIndexer |
get(int i,
char[] c,
int offset,
int length) |
char |
get(int i,
int j) |
CharIndexer |
get(int i,
int j,
char[] c,
int offset,
int length) |
char |
get(int i,
int j,
int k) |
CharIndexer |
put(int[] indices,
char c) |
CharIndexer |
put(int[] indices,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
char c) |
CharIndexer |
put(int i,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
int j,
char c) |
CharIndexer |
put(int i,
int j,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
int j,
int k,
char c) |
void |
release()
Makes sure changes are reflected onto the backing memory and releases any references.
|
create, create, create, create, get, get, get, getDouble, put, put, put, putDoubleprotected CharBuffer buffer
public CharBufferIndexer(CharBuffer buffer, int[] sizes, int[] strides)
public Buffer buffer()
public char get(int i)
get in class CharIndexerarray/buffer[i]public CharIndexer get(int i, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[i]public char get(int i,
int j)
get in class CharIndexerarray/buffer[i * strides[0] + j]public CharIndexer get(int i, int j, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[i * strides[0] + j]public char get(int i,
int j,
int k)
get in class CharIndexerarray/buffer[i * strides[0] + j * strides[1] + k]public char get(int... indices)
get in class CharIndexerarray/buffer[index(indices)]public CharIndexer get(int[] indices, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[index(indices)]public CharIndexer put(int i, char c)
put in class CharIndexerthis where array/buffer[i] = cpublic CharIndexer put(int i, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[i] = c[offset:offset + length]public CharIndexer put(int i, int j, char c)
put in class CharIndexerthis where array/buffer[i * strides[0] + j] = cpublic CharIndexer put(int i, int j, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[i * strides[0] + j] = c[offset:offset + length]public CharIndexer put(int i, int j, int k, char c)
put in class CharIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = cpublic CharIndexer put(int[] indices, char c)
put in class CharIndexerthis where array/buffer[index(indices)] = cpublic CharIndexer put(int[] indices, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[index(indices)] = c[offset:offset + length]Copyright © 2015. All Rights Reserved.