![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <QList>#include <QString>#include <QtGlobal>#include <functional>Go to the source code of this file.
Classes | |
| struct | RawJson::SetDataRange |
| The byte extent of a set's object inside the scanned document, plus the size of its cards array. This is the slice SetToDownload needs for lazy per-set parsing; the metadata strings live in SetRange alongside it. More... | |
| struct | RawJson::SetRange |
| struct | RawJson::ScanError |
Namespaces | |
| namespace | RawJson |
Typedefs | |
| using | RawJson::ScanProgressCallback = std::function<void(qsizetype bytesRead, qsizetype totalBytes)> |
Optional progress callback receiving (bytesRead, totalBytes) while the document is walked. Invoked from the scanning thread; the caller decides how the throttled offsets are relayed to a GUI event loop. | |
Functions | |
| QList< SetRange > | RawJson::scanSetRanges (const QByteArray &json, ScanError *error=nullptr, const ScanProgressCallback &progress=ScanProgressCallback()) |
| Scans a full MTGJSON document without materializing the JSON tree. | |