public class ByteArray extends Object implements Serializable
Constructor and Description |
---|
ByteArray()
Construct an empty ByteArray
|
ByteArray(byte[] buf)
Create a byte array
|
ByteArray(byte[] buf,
int offset,
int length)
Create a ByteArray
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear the values held by this ByteArray
|
ByteArray |
copy()
make a copy
|
byte |
get(int position) |
byte[] |
getBuf() |
int |
getLength() |
int |
getOffset() |
void |
reset(byte[] buf)
reset values
|
void |
reset(byte[] buf,
int offset,
int length)
reset values
|
void |
setBuf(byte[] buf) |
void |
setLength(int length) |
void |
setOffset(int offset) |
public ByteArray()
public ByteArray(byte[] buf)
public ByteArray(byte[] buf, int offset, int length)
public void clear()
public void reset(byte[] buf)
public void reset(byte[] buf, int offset, int length)
public byte[] getBuf()
public void setBuf(byte[] buf)
buf
- The buf to set.public int getLength()
public void setLength(int length)
length
- The length to set.public int getOffset()
public void setOffset(int offset)
offset
- The offset to set.public byte get(int position)
public ByteArray copy()
Copyright © GigaSpaces.