155inline constexpr bool is_root_v = std::is_base_of<NdRoot, T>::value;
Lightweight binary serialization container optimized for network communication.
Definition tec_net_data.hpp:51
Base interface for objects that support JSON serialization.
Definition tec_serialize.hpp:169
virtual std::string to_json() const =0
Convert this object to a JSON string representation.
Root class for serializable objects used in RPC communications.
Definition tec_serialize.hpp:119
NdRoot(rpcid_t _id)
Constructs an NdRoot instance with the specified RPC identifier.
Definition tec_serialize.hpp:131
constexpr rpcid_t id() const
Retrieves the RPC identifier.
Definition tec_serialize.hpp:143
Base interface for objects that support binary serialization.
Definition tec_serialize.hpp:60
virtual NetData & load(NetData &s)=0
Deserialize this object from a binary stream.
virtual NetData & store(NetData &s) const =0
Serialize this object into a binary stream.
Common definitions and utilities for the tec namespace.
constexpr bool is_serializable_v
Variable template to check at compile-time whether a type is serializable.
Definition tec_serialize.hpp:104
uint16_t rpcid_t
Type alias for RPC identifiers, represented as a 16-bit unsigned integer.
Definition tec_serialize.hpp:108
constexpr bool is_json_serializable_v
Variable template to check at compile-time whether a type is JSON serializable.
Definition tec_serialize.hpp:195
constexpr bool is_root_v
Variable template to check at compile-time whether a type is a root object for binary serizalization.
Definition tec_serialize.hpp:155