code: boolean add(DatagramPacket packet) {
          if (count == packets.length) {
              // We already filled up to UIO_MAX_IOV messages. This is the max allowed per sendmmsg(...) call, we will
              // try again later.
              return false;
          }
          ByteBuf content = packet.content();
          int len = content.readableBytes();
          if (len == 0) {
              return true;
          }
          NativeDatagramPacket p = packets[count];
          InetSocketAddress recipient = packet.recipient();
  
          int offset = iovArray.count();
          if (!iovArray.add(content)) {
              // Not enough space to hold the whole content, we will try again later.
              return false;
          }
          p.init(iovArray.memoryAddress(offset), iovArray.count() - offset, recipient);
  
          count++;
          return true;
      }
docs: Try to add the given {@link DatagramPacket}. Returns {@code true} on success,
  {@code false} otherwise.