public class Octets extends java.lang.Object implements java.lang.Comparable<Octets>, java.io.Serializable
Constructor and Description |
---|
Octets() |
Octets(byte[] rhs) |
Octets(byte[] rhs,
int pos,
int size) |
Octets(int size) |
Octets(Octets rhs) |
Octets(Octets rhs,
int pos,
int size) |
Modifier and Type | Method and Description |
---|---|
Octets |
append(byte[] data) |
Octets |
append(byte[] data,
int pos,
int size) |
Octets |
append(Octets data) |
Octets |
append(Octets data,
int pos,
int size) |
byte[] |
array() |
int |
capacity() |
Octets |
clear() |
int |
compareTo(Octets rhs) |
boolean |
equals(java.lang.Object o) |
Octets |
erase(int from,
int to) |
Octets |
fit() |
byte |
getByte(int pos) |
java.nio.ByteBuffer |
getByteBuffer() |
java.nio.ByteBuffer |
getByteBuffer(int off) |
java.nio.ByteBuffer |
getByteBuffer(int off,
int size) |
byte[] |
getBytes() |
int |
hashCode() |
Octets |
insert(int from,
byte[] data) |
Octets |
insert(int from,
byte[] data,
int pos,
int size) |
Octets |
insert(int from,
Octets data) |
Octets |
insert(int from,
Octets data,
int pos,
int size) |
Octets |
push_byte(byte data) |
Octets |
replace(byte[] data) |
Octets |
replace(byte[] data,
int pos,
int size) |
Octets |
replace(Octets data) |
Octets |
replace(Octets data,
int pos,
int size) |
void |
reserve(int size) |
Octets |
resize(int size) |
void |
setByte(int pos,
byte b) |
int |
size() |
Octets |
swap(Octets rhs) |
java.lang.String |
toString() |
static Octets |
wrap(byte[] bytes) |
static Octets |
wrap(byte[] bytes,
int length) |
public Octets()
public Octets(int size)
public Octets(Octets rhs)
public Octets(byte[] rhs)
public Octets(byte[] rhs, int pos, int size)
public Octets(Octets rhs, int pos, int size)
public void reserve(int size)
public Octets replace(byte[] data, int pos, int size)
public Octets replace(byte[] data)
public static Octets wrap(byte[] bytes, int length)
public static Octets wrap(byte[] bytes)
public Octets resize(int size)
public Octets fit()
public int size()
public int capacity()
public Octets clear()
public Octets push_byte(byte data)
public Octets erase(int from, int to)
public Octets insert(int from, byte[] data, int pos, int size)
public Octets insert(int from, byte[] data)
public Octets append(byte[] data, int pos, int size)
public Octets append(byte[] data)
public int compareTo(Octets rhs)
compareTo
in interface java.lang.Comparable<Octets>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getBytes()
public byte[] array()
public byte getByte(int pos)
public void setByte(int pos, byte b)
public java.nio.ByteBuffer getByteBuffer(int off, int size)
public java.nio.ByteBuffer getByteBuffer(int off)
public java.nio.ByteBuffer getByteBuffer()