public interface IIntArraySlice
Modifier and Type | Method and Description |
---|---|
int[] |
array()
The backing array.
|
void |
get(int srcoff,
int[] dst)
Absolute bulk get copies
dst.length int s
from the specified offset into the slice defined by this buffer into the
caller's array. |
void |
get(int srcoff,
int[] dst,
int dstoff,
int dstlen)
Absolute bulk get copies the specified slice of
int s
from this buffer into the specified slice of the caller's array. |
int |
getInt(int pos)
Absolute get of a value at an index.
|
int |
len()
The length of the slice in the
array() . |
int |
off()
The start of the slice in the
array() . |
void |
put(int pos,
int[] src)
Absolute bulk put copies all
int s in the caller's
array into this buffer starting at the specified position within the
slice defined by this buffer. |
void |
put(int dstoff,
int[] src,
int srcoff,
int srclen)
Absolute bulk put copies the specified slice of
int s
from the caller's array into this buffer starting at the specified
position within the slice defined by this buffer. |
void |
putInt(int pos,
int v)
Absolute put of a value at an index.
|
IIntArraySlice |
slice(int off,
int len)
Return a slice of the backing buffer.
|
int[] |
toArray()
Return a copy of the data in the slice.
|
int[] array()
int off()
array()
.int len()
array()
.int[] toArray()
IIntArraySlice slice(int off, int len)
array()
, even when the buffer is extended and
the array reference is replaced.off
- The starting offset into the backing buffer of the slice.len
- The length of that slice.void putInt(int pos, int v)
pos
- The index.v
- The value.int getInt(int pos)
pos
- The index.void put(int pos, int[] src)
int
s in the caller's
array into this buffer starting at the specified position within the
slice defined by this buffer.pos
- The starting position within the slice defined by this buffer.src
- The source data.void put(int dstoff, int[] src, int srcoff, int srclen)
int
s
from the caller's array into this buffer starting at the specified
position within the slice defined by this buffer.dstoff
- The offset into the slice to which the data will be copied.src
- The source data.srcoff
- The offset of the 1st int
in the source data to
be copied.srclen
- The #of int
s to be copied.void get(int srcoff, int[] dst)
dst.length
int
s
from the specified offset into the slice defined by this buffer into the
caller's array.srcoff
- The offset into the slice of the first int
to be copied.dst
- The array into which the data will be copied.void get(int srcoff, int[] dst, int dstoff, int dstlen)
int
s
from this buffer into the specified slice of the caller's array.srcoff
- The offset into the slice defined by this buffer of the first
int
to be copied.dst
- The array into which the data will be copied.dstoff
- The offset of the first int
in that array onto
which the data will be copied.dstlen
- The #of int
s to be copied.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.