docs: public int add(final Message msg, boolean resize) {
          if(msg == null) return 0;
          if(index >= messages.length) {
              if(!resize)
                  return 0;
              resize();
          }
          messages[index++]=msg;
          return 1;
      }