public abstract class ULongIndexer extends Indexer
long primitive type, treated as unsigned.| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_BYTES
The number of bytes used to represent a long.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ULongIndexer(Index index) |
protected |
ULongIndexer(long[] sizes,
long[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static ULongIndexer |
create(long[] array)
Returns
new ULongArrayIndexer(array) |
static ULongIndexer |
create(long[] array,
Index index)
Returns
new ULongArrayIndexer(array, index) |
static ULongIndexer |
create(long[] array,
long... sizes)
Returns
new ULongArrayIndexer(array, sizes) |
static ULongIndexer |
create(long[] array,
long[] sizes,
long[] strides)
Returns
new ULongArrayIndexer(array, sizes, strides) |
static ULongIndexer |
create(LongBuffer buffer)
Returns
new ULongBufferIndexer(buffer) |
static ULongIndexer |
create(LongBuffer buffer,
Index index)
Returns
new ULongBufferIndexer(buffer, index) |
static ULongIndexer |
create(LongBuffer buffer,
long... sizes)
Returns
new ULongBufferIndexer(buffer, sizes) |
static ULongIndexer |
create(LongBuffer buffer,
long[] sizes,
long[] strides)
Returns
new ULongBufferIndexer(buffer, sizes, strides) |
static ULongIndexer |
create(LongPointer pointer)
Returns
new ULongRawIndexer(pointer) |
static ULongIndexer |
create(LongPointer pointer,
Index index)
Returns
new ULongRawIndexer(pointer, index) |
static ULongIndexer |
create(LongPointer pointer,
Index index,
boolean direct)
Creates a long indexer to access efficiently the data of a pointer.
|
static ULongIndexer |
create(LongPointer pointer,
long... sizes)
Returns
new ULongRawIndexer(pointer, sizes) |
static ULongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides)
Returns
new ULongRawIndexer(pointer, sizes, strides) |
static ULongIndexer |
create(LongPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Returns
create(pointer, Index.create(sizes, strides), direct) |
static long |
fromBigInteger(BigInteger l) |
abstract BigInteger |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract BigInteger |
get(long i)
Returns
array/buffer[index(i)] |
ULongIndexer |
get(long[] indices,
BigInteger[] l)
Returns
this where l = array/buffer[index(indices)] |
abstract ULongIndexer |
get(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(indices)] |
ULongIndexer |
get(long i,
BigInteger[] l)
Returns
this where l = array/buffer[index(i)] |
abstract ULongIndexer |
get(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i)] |
abstract BigInteger |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
ULongIndexer |
get(long i,
long j,
BigInteger[] l)
Returns
this where l = array/buffer[index(i, j)] |
abstract ULongIndexer |
get(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where l[offset:offset + length] = array/buffer[index(i, j)] |
abstract BigInteger |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
ULongIndexer |
put(long[] indices,
BigInteger... l)
Returns
this where array/buffer[index(indices)] = l |
abstract ULongIndexer |
put(long[] indices,
BigInteger l)
Returns
this where array/buffer[index(indices)] = l |
abstract ULongIndexer |
put(long[] indices,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
BigInteger... l)
Returns
this where array/buffer[index(i)] = l |
abstract ULongIndexer |
put(long i,
BigInteger l)
Returns
this where array/buffer[index(i)] = l |
abstract ULongIndexer |
put(long i,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i)] = l[offset:offset + length] |
ULongIndexer |
put(long i,
long j,
BigInteger... l)
Returns
this where array/buffer[index(i, j)] = l |
abstract ULongIndexer |
put(long i,
long j,
BigInteger l)
Returns
this where array/buffer[index(i, j)] = l |
abstract ULongIndexer |
put(long i,
long j,
BigInteger[] l,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = l[offset:offset + length] |
abstract ULongIndexer |
put(long i,
long j,
long k,
BigInteger l)
Returns
this where array/buffer[index(i, j, k)] = l |
ULongIndexer |
putDouble(long[] indices,
double l)
Casts value to primitive type and calls
put(long[] indices, <type> value). |
static BigInteger |
toBigInteger(long l) |
public static final int VALUE_BYTES
protected ULongIndexer(Index index)
protected ULongIndexer(long[] sizes,
long[] strides)
public static ULongIndexer create(long[] array)
new ULongArrayIndexer(array)public static ULongIndexer create(LongBuffer buffer)
new ULongBufferIndexer(buffer)public static ULongIndexer create(LongPointer pointer)
new ULongRawIndexer(pointer)public static ULongIndexer create(long[] array, Index index)
new ULongArrayIndexer(array, index)public static ULongIndexer create(LongBuffer buffer, Index index)
new ULongBufferIndexer(buffer, index)public static ULongIndexer create(LongPointer pointer, Index index)
new ULongRawIndexer(pointer, index)public static ULongIndexer create(long[] array, long... sizes)
new ULongArrayIndexer(array, sizes)public static ULongIndexer create(LongBuffer buffer, long... sizes)
new ULongBufferIndexer(buffer, sizes)public static ULongIndexer create(LongPointer pointer, long... sizes)
new ULongRawIndexer(pointer, sizes)public static ULongIndexer create(long[] array, long[] sizes, long[] strides)
new ULongArrayIndexer(array, sizes, strides)public static ULongIndexer create(LongBuffer buffer, long[] sizes, long[] strides)
new ULongBufferIndexer(buffer, sizes, strides)public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides)
new ULongRawIndexer(pointer, sizes, strides)public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
create(pointer, Index.create(sizes, strides), direct)public static ULongIndexer create(LongPointer pointer, Index index, boolean direct)
pointer - data to access via a buffer or to copy to an arrayindex - to usedirect - true to use a direct buffer, see Indexer for detailspublic static BigInteger toBigInteger(long l)
public static long fromBigInteger(BigInteger l)
public abstract BigInteger get(long i)
array/buffer[index(i)]public ULongIndexer get(long i, BigInteger[] l)
this where l = array/buffer[index(i)]public abstract ULongIndexer get(long i, BigInteger[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(i)]public abstract BigInteger get(long i, long j)
array/buffer[index(i, j)]public ULongIndexer get(long i, long j, BigInteger[] l)
this where l = array/buffer[index(i, j)]public abstract ULongIndexer get(long i, long j, BigInteger[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(i, j)]public abstract BigInteger get(long i, long j, long k)
array/buffer[index(i, j, k)]public abstract BigInteger get(long... indices)
array/buffer[index(indices)]public ULongIndexer get(long[] indices, BigInteger[] l)
this where l = array/buffer[index(indices)]public abstract ULongIndexer get(long[] indices, BigInteger[] l, int offset, int length)
this where l[offset:offset + length] = array/buffer[index(indices)]public abstract ULongIndexer put(long i, BigInteger l)
this where array/buffer[index(i)] = lpublic ULongIndexer put(long i, BigInteger... l)
this where array/buffer[index(i)] = lpublic abstract ULongIndexer put(long i, BigInteger[] l, int offset, int length)
this where array/buffer[index(i)] = l[offset:offset + length]public abstract ULongIndexer put(long i, long j, BigInteger l)
this where array/buffer[index(i, j)] = lpublic ULongIndexer put(long i, long j, BigInteger... l)
this where array/buffer[index(i, j)] = lpublic abstract ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
this where array/buffer[index(i, j)] = l[offset:offset + length]public abstract ULongIndexer put(long i, long j, long k, BigInteger l)
this where array/buffer[index(i, j, k)] = lpublic abstract ULongIndexer put(long[] indices, BigInteger l)
this where array/buffer[index(indices)] = lpublic ULongIndexer put(long[] indices, BigInteger... l)
this where array/buffer[index(indices)] = lpublic abstract ULongIndexer put(long[] indices, BigInteger[] l, int offset, int length)
this where array/buffer[index(indices)] = l[offset:offset + length]public double getDouble(long... indices)
Indexerget(int...indices) and returns the value as a double.public ULongIndexer putDouble(long[] indices, double l)
Indexerput(long[] indices, <type> value).Copyright © 2025. All rights reserved.