rpc
Class Buffer

java.lang.Object
  extended by rpc.Buffer

public class Buffer
extends java.lang.Object


Field Summary
static int NO_INCREMENT
           
 
Constructor Summary
Buffer()
           
Buffer(byte[] buffer)
           
Buffer(byte[] buffer, int capacityIncrement)
           
Buffer(int capacityIncrement)
           
 
Method Summary
 int advance(int step)
           
 int advance(int step, byte value)
           
 int align(int boundary)
           
 int align(int boundary, byte value)
           
 byte[] copy()
           
 byte[] getBuffer()
           
 int getCapacity()
           
 int getCapacityIncrement()
           
 int getIndex()
           
 int getIndex(int advance)
           
 int getLength()
           
 void reset()
           
 void setBuffer(byte[] buffer)
           
 void setCapacityIncrement(int capacityIncrement)
           
 void setIndex(int index)
           
 void setLength(int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_INCREMENT

public static final int NO_INCREMENT
See Also:
Constant Field Values
Constructor Detail

Buffer

public Buffer()

Buffer

public Buffer(int capacityIncrement)

Buffer

public Buffer(byte[] buffer)

Buffer

public Buffer(byte[] buffer,
              int capacityIncrement)
Method Detail

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)