public byte[] serialize(){
  if (getTotalLengthBytes() > Integer.MAX_VALUE)   Timber.e("Message too long for serialize! Will be truncated");
  return serialize(0,(int)getTotalLengthBytes());
}

public byte [ ] serialize ( ) { if ( getTotalLengthBytes ( ) > Integer . MAX_VALUE ) Timber . e ( "Message too long for serialize! Will be truncated" ) ; return serialize ( 0 , ( int ) getTotalLengthBytes ( ) ) ; }
serialize the entire message in one go . must only be used for messages less than 2 mb .
