hash_name_build.h 835 B

123456789101112131415161718
  1. #pragma once
  2. #include "../../../middleware/content/packages/reader/reader.h"
  3. namespace sunrise::client::content::hash_names {
  4. /**
  5. * Finds the internal name of every destination bubble it can, once.
  6. * A bubble stores only the hash of its name, so names are recovered by hashing the ids the
  7. * installed objects carry. Runs after the destination layouts publish, which give the hashes.
  8. * @param source Package directory and borrowed block keys.
  9. * @param scratch Lock-owned block storage shared with the item build.
  10. * @return True when State already holds the table or a full pass publishes it.
  11. */
  12. [[nodiscard]] bool build(const middleware::content::packages::reader::Source& source,
  13. middleware::content::packages::reader::Scratch& scratch) noexcept;
  14. } // namespace sunrise::client::content::hash_names