public int append(byte[] b,int offset,int length){
  int oldLength=bytesLength;
  bytesLength+=length;
  int newCapacity=capacityPolicy.ensureCapacity(bytesLength,bytes.length);
  if (newCapacity > bytes.length) {
    byte[] newB=new byte[newCapacity];
    System.arraycopy(bytes,0,newB,0,bytes.length);
    bytes=newB;
  }
  System.arraycopy(b,offset,bytes,oldLength,length);
  normalizeCommandLength();
  return bytesLength;
}

public int append ( byte [ ] b , int offset , int length ) { int oldLength = bytesLength ; bytesLength += length ; int newCapacity = capacityPolicy . ensureCapacity ( bytesLength , bytes . length ) ; if ( newCapacity > bytes . length ) { byte [ ] newB = new byte [ newCapacity ] ; System . arraycopy ( bytes , 0 , newB , 0 , bytes . length ) ; bytes = newB ; } System . arraycopy ( b , offset , bytes , oldLength , length ) ; normalizeCommandLength ( ) ; return bytesLength ; }
append bytes to specified offset and length .
