Function trx::append_groups_to_zip

Function Documentation

void trx::append_groups_to_zip(const std::string &path, const std::map<std::string, std::vector<uint32_t>> &groups, TrxCompression compression = TrxCompression::None, bool overwrite = true)

Append named groups to an existing TRX zip archive.

Opens the archive without truncating it, writes one “groups/{name}.uint32” entry per group, then commits the archive. The header.json is not modified because group discovery at load time is performed by directory scan.

Parameters:
  • path – Path to an existing TRX zip file (.trx).

  • groups – Map from group name to sorted vector of uint32 streamline indices.

  • compression – Compression method for new entries (default: TrxCompression::None).

  • overwrite – If false, existing entries with the same name are skipped (default: true).

Throws:

TrxIOError – on any zip failure.