public final class ByteArray extends java.lang.Object implements Swappable
Integer.MAX_VALUE
Bytes. Dennoch wird aus Speichergruenden darauf verzichtet,
den kompletten Long
Bereich zu adressieren.Modifier and Type | Field and Description |
---|---|
static long |
MAXMEM |
Constructor and Description |
---|
ByteArray() |
ByteArray(Swappable swappable) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
byte |
get(long idx) |
int |
get(long idx,
byte[] bytes) |
long |
getSize() |
void |
push(byte value) |
void |
set(long idx,
byte value) |
void |
set(long idx,
byte[] bytes,
int len) |
void |
swap(long i,
long j)
Tauscht zwei Werte in einem Array.
|
public static final long MAXMEM
public ByteArray(Swappable swappable)
public ByteArray()
public long getSize()
public void swap(long i, long j)
Swappable
public void push(byte value)
public void clear()
public byte get(long idx)
public void set(long idx, byte value)
public int get(long idx, byte[] bytes)
public void set(long idx, byte[] bytes, int len)