public class UShortBufferIndexer extends UShortIndexer
ShortBuffer, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
protected ShortBuffer |
buffer
The backing buffer.
|
VALUE_BYTESindexable, ONE_STRIDE, sizes, strides| Constructor and Description |
|---|
UShortBufferIndexer(ShortBuffer buffer)
Calls
UShortBufferIndexer(buffer, { buffer.limit() }, { 1 }). |
UShortBufferIndexer(ShortBuffer buffer,
long[] sizes,
long[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer()
Returns the backing buffer, or
null if none |
int |
get(long... indices)
Returns
array/buffer[index(indices)] |
int |
get(long i)
Returns
array/buffer[i] |
UShortIndexer |
get(long[] indices,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[index(indices)] |
UShortIndexer |
get(long i,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i] |
int |
get(long i,
long j)
Returns
array/buffer[i * strides[0] + j] |
UShortIndexer |
get(long i,
long j,
int[] s,
int offset,
int length)
Returns
this where s[offset:offset + length] = array/buffer[i * strides[0] + j] |
int |
get(long i,
long j,
long k)
Returns
array/buffer[i * strides[0] + j * strides[1] + k] |
UShortIndexer |
put(long[] indices,
int s)
Returns
this where array/buffer[index(indices)] = s |
UShortIndexer |
put(long[] indices,
int[] s,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = s[offset:offset + length] |
UShortIndexer |
put(long i,
int s)
Returns
this where array/buffer[i] = s |
UShortIndexer |
put(long i,
int[] s,
int offset,
int length)
Returns
this where array/buffer[i] = s[offset:offset + length] |
UShortIndexer |
put(long i,
long j,
int s)
Returns
this where array/buffer[i * strides[0] + j] = s |
UShortIndexer |
put(long i,
long j,
int[] s,
int offset,
int length)
Returns
this where array/buffer[i * strides[0] + j] = s[offset:offset + length] |
UShortIndexer |
put(long i,
long j,
long k,
int s)
Returns
this where array/buffer[i * strides[0] + j * strides[1] + k] = s |
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 ShortBuffer buffer
public UShortBufferIndexer(ShortBuffer buffer)
UShortBufferIndexer(buffer, { buffer.limit() }, { 1 }).public UShortBufferIndexer(ShortBuffer buffer, long[] sizes, long[] strides)
public Buffer buffer()
Indexernull if nonepublic int get(long i)
UShortIndexerarray/buffer[i]get in class UShortIndexerpublic UShortIndexer get(long i, int[] s, int offset, int length)
UShortIndexerthis where s[offset:offset + length] = array/buffer[i]get in class UShortIndexerpublic int get(long i,
long j)
UShortIndexerarray/buffer[i * strides[0] + j]get in class UShortIndexerpublic UShortIndexer get(long i, long j, int[] s, int offset, int length)
UShortIndexerthis where s[offset:offset + length] = array/buffer[i * strides[0] + j]get in class UShortIndexerpublic int get(long i,
long j,
long k)
UShortIndexerarray/buffer[i * strides[0] + j * strides[1] + k]get in class UShortIndexerpublic int get(long... indices)
UShortIndexerarray/buffer[index(indices)]get in class UShortIndexerpublic UShortIndexer get(long[] indices, int[] s, int offset, int length)
UShortIndexerthis where s[offset:offset + length] = array/buffer[index(indices)]get in class UShortIndexerpublic UShortIndexer put(long i, int s)
UShortIndexerthis where array/buffer[i] = sput in class UShortIndexerpublic UShortIndexer put(long i, int[] s, int offset, int length)
UShortIndexerthis where array/buffer[i] = s[offset:offset + length]put in class UShortIndexerpublic UShortIndexer put(long i, long j, int s)
UShortIndexerthis where array/buffer[i * strides[0] + j] = sput in class UShortIndexerpublic UShortIndexer put(long i, long j, int[] s, int offset, int length)
UShortIndexerthis where array/buffer[i * strides[0] + j] = s[offset:offset + length]put in class UShortIndexerpublic UShortIndexer put(long i, long j, long k, int s)
UShortIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = sput in class UShortIndexerpublic UShortIndexer put(long[] indices, int s)
UShortIndexerthis where array/buffer[index(indices)] = sput in class UShortIndexerpublic UShortIndexer put(long[] indices, int[] s, int offset, int length)
UShortIndexerthis where array/buffer[index(indices)] = s[offset:offset + length]put in class UShortIndexerCopyright © 2016. All rights reserved.