v2.0.0
Loading...
Searching...
No Matches
mna_file_ref.cpp File Reference

JSON and CBOR codecs for MnaFileRef, including base64 framing of embedded payloads and preservation of unknown keys in extras. More...

#include "mna_file_ref.h"
#include <QJsonValue>
#include <QCborValue>
#include <QCborArray>
Include dependency graph for mna_file_ref.cpp:

Go to the source code of this file.

Detailed Description

JSON and CBOR codecs for MnaFileRef, including base64 framing of embedded payloads and preservation of unknown keys in extras.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.0
Date
April 2026

The implementation is symmetric: every field declared in the struct round-trips losslessly through both the JSON and CBOR paths, embedded bytes are encoded as base64 in JSON (for human-editability) and as a native byte string in CBOR (for compactness), and any key not recognised by the current build is shovelled into extras on read and re-emitted verbatim on write to keep forward compatibility intact.

Definition in file mna_file_ref.cpp.