public void writeByte(final byte octet){
  if (remaining() < 1) {
    if (index == blocks.size() - 1) {
      allocateNewBlock();
    }
    index++;
    current=blocks.get(index);
  }
  final Block block=current;
  block.data[block.limit]=octet;
  block.limit++;
}

public void writeByte ( final byte octet ) { if ( remaining ( ) < 1 ) { if ( index == blocks . size ( ) - 1 ) { allocateNewBlock ( ) ; } index ++ ; current = blocks . get ( index ) ; } final Block block = current ; block . data [ block . limit ] = octet ; block . limit ++ ; }
writes a single octet to the buffer , expanding if necessary .
