NcEngine
BinarySerialization.h
Go to the documentation of this file.
1
5#pragma once
6
7#if defined(__APPLE__)
10 #error "BinarySerialization.h is currently unsupported on macOS."
11#endif
12
13#include "ncutility/detail/SerializeCpo.h"
14
15namespace nc::serialize
16{
41inline constexpr nc::serialize::cpo::SerializeFn Serialize;
42
47inline constexpr nc::serialize::cpo::DeserializeFn Deserialize;
48
50inline constexpr size_t g_aggregateMaxMemberCount = 16ull;
51} // namespace nc::seriazlize
constexpr nc::serialize::cpo::DeserializeFn Deserialize
Deserialize an object from a stream.
Definition: BinarySerialization.h:47
constexpr nc::serialize::cpo::SerializeFn Serialize
Serialize an object to a stream.
Definition: BinarySerialization.h:41
constexpr size_t g_aggregateMaxMemberCount
The maximum number of members an aggregate may have for default serialization.
Definition: BinarySerialization.h:50