rpc
Class Buffer
java.lang.Object
rpc.Buffer
public class Buffer
- extends java.lang.Object
Constructor Summary |
Buffer()
|
Buffer(byte[] buffer)
|
Buffer(byte[] buffer,
int capacityIncrement)
|
Buffer(int capacityIncrement)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_INCREMENT
public static final int NO_INCREMENT
- See Also:
- Constant Field Values
Buffer
public Buffer()
Buffer
public Buffer(int capacityIncrement)
Buffer
public Buffer(byte[] buffer)
Buffer
public Buffer(byte[] buffer,
int capacityIncrement)
getCapacity
public int getCapacity()
getCapacityIncrement
public int getCapacityIncrement()
setCapacityIncrement
public void setCapacityIncrement(int capacityIncrement)
getBuffer
public byte[] getBuffer()
setBuffer
public void setBuffer(byte[] buffer)
getLength
public int getLength()
setLength
public void setLength(int length)
copy
public byte[] copy()
reset
public void reset()
getIndex
public int getIndex()
getIndex
public int getIndex(int advance)
setIndex
public void setIndex(int index)
align
public int align(int boundary)
align
public int align(int boundary,
byte value)
advance
public int advance(int step)
advance
public int advance(int step,
byte value)