![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Functions | |
| bool | write (const QString &cachePath, const CardDatabaseData &data, const QByteArray &sourceHash) |
| Writes a fully-built database snapshot to a binary cache file. | |
| bool | read (const QString &cachePath, CardDatabaseData &data, const QByteArray &sourceHash, ICardSetPriorityController *priorityController) |
| Reads a database snapshot from a binary cache file. | |
| bool CardDatabaseCache::read | ( | const QString & | cachePath, |
| CardDatabaseData & | data, | ||
| const QByteArray & | sourceHash, | ||
| ICardSetPriorityController * | priorityController ) |
Reads a database snapshot from a binary cache file.
| cachePath | Path of the cache file to read. |
| data | Snapshot to populate. |
| sourceHash | Expected hash of the source XML; read fails if it differs. |
| priorityController | Controller used to reconstruct CardSet state. |
| bool CardDatabaseCache::write | ( | const QString & | cachePath, |
| const CardDatabaseData & | data, | ||
| const QByteArray & | sourceHash ) |
Writes a fully-built database snapshot to a binary cache file.
| cachePath | Path of the cache file to write. |
| data | The snapshot to serialize. |
| sourceHash | Hash of the source XML used to validate the cache later. |