public class ByteBuf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
capacity |
protected int |
length |
Modifier | Constructor and Description |
---|---|
protected |
ByteBuf() |
protected |
ByteBuf(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(byte value) |
void |
add(byte[] array) |
void |
add(char value) |
void |
add(double value) |
void |
add(float value) |
void |
add(int value) |
void |
add(long value) |
void |
add(short value) |
void |
add(java.lang.String str) |
static ByteBuf |
create(byte[] buffer) |
static ByteBuf |
create(int capacity) |
static ByteBuf |
createExact(int capacity) |
int |
len() |
byte[] |
readAndReset() |
protected int capacity
protected int length
protected byte[] buffer
public static ByteBuf createExact(int capacity)
public static ByteBuf create(int capacity)
public static ByteBuf create(byte[] buffer)
public void add(java.lang.String str)
public void add(int value)
public void add(float value)
public void add(char value)
public void add(short value)
public void add(byte value)
public void add(long value)
public void add(double value)
public void add(byte[] array)
public byte[] readAndReset()
public int len()