public class Buffer
extends java.lang.Object
| Constructor and Description |
|---|
Buffer() |
Buffer(byte[] data) |
Buffer(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(int length) |
byte[] |
array() |
protected void |
ensureWriteableBytes(int size) |
int |
position() |
void |
position(int position) |
Buffer |
putByteArray(byte[] b,
int offset,
int length) |
int |
read(byte[] buffer,
int offset,
int length) |
byte |
readByte() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUtf8() |
void |
reset() |
void |
reset(int initialSize) |
int |
size() |
protected void |
verifyReadableBytes(int size) |
Buffer |
writeByte(int b) |
Buffer |
writeDouble(double d) |
Buffer |
writeFloat(float f) |
Buffer |
writeInt(int i) |
Buffer |
writeLong(long l) |
Buffer |
writeShort(int s) |
Buffer |
writeUtf8(java.lang.String s) |
public Buffer()
public Buffer(byte[] data)
public Buffer(int initialSize)
public int size()
public int position()
public void position(int position)
public void advance(int length)
public void reset()
public void reset(int initialSize)
public byte[] array()
public int read(byte[] buffer,
int offset,
int length)
public java.lang.String readUtf8()
public byte readByte()
public int readUnsignedByte()
public short readShort()
public int readUnsignedShort()
public int readInt()
public long readLong()
public float readFloat()
public double readDouble()
public Buffer writeByte(int b)
public Buffer writeShort(int s)
public Buffer writeInt(int i)
public Buffer writeLong(long l)
public Buffer writeFloat(float f)
public Buffer writeDouble(double d)
public Buffer writeUtf8(java.lang.String s)
public Buffer putByteArray(byte[] b, int offset, int length)
protected void verifyReadableBytes(int size)
protected void ensureWriteableBytes(int size)