JSON and CBOR codecs for MnaPort including data-kind enum mapping, optional stream binding fields and cached-result references. More...
#include "mna_port.h"
Go to the source code of this file.
JSON and CBOR codecs for MnaPort including data-kind enum mapping, optional stream binding fields and cached-result references.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The implementation converts MnaDataKind and MnaPortDir through the canonical string helpers from mna_types.h so the on-disk vocabulary stays single-source. Stream-related fields (streamProtocol, streamEndpoint, streamBufferMs) and cache-related fields (cachedResultPath, cachedResultHash) are only written when non-default so simple file-based projects stay compact, and any unknown attribute is shovelled into extras to keep the round trip lossless across MNALIB versions.
Definition in file mna_port.cpp.