protected void appendPayload(byte[] payloadarr){
  int oldpayloadsize=this.payload.length;
  byte[] oldpayload=this.payload;
  this.payload=new byte[oldpayloadsize + payloadarr.length];
  System.arraycopy(oldpayload,0,this.payload,0,oldpayloadsize);
  System.arraycopy(payloadarr,0,this.payload,oldpayloadsize,payloadarr.length);
}

protected void appendPayload ( byte [ ] payloadarr ) { int oldpayloadsize = this . payload . length ; byte [ ] oldpayload = this . payload ; this . payload = new byte [ oldpayloadsize + payloadarr . length ] ; System . arraycopy ( oldpayload , 0 , this . payload , 0 , oldpayloadsize ) ; System . arraycopy ( payloadarr , 0 , this . payload , oldpayloadsize , payloadarr . length ) ; }
appends a byte - array to the payload
