docs: @Nullable
    byte[][] serialize() {
      if (len() == cap()) {
        return namesAndValues;
      }
      byte[][] serialized = new byte[len()][];
      System.arraycopy(namesAndValues, 0, serialized, 0, len());
      return serialized;
    }