Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
common-protocol-impl.hh File Reference

Go to the source code of this file.

Macros

#define COMMON_USE_LENGTH_PREFIX_SERIALISER(TEMPLATE, T)
#define COMMA_   ,

Detailed Description

Template implementations (as opposed to mere declarations).

This file is an example of the "impl.hh" pattern. See the contributing guide.

Macro Definition Documentation

◆ COMMON_USE_LENGTH_PREFIX_SERIALISER

#define COMMON_USE_LENGTH_PREFIX_SERIALISER ( TEMPLATE,
T )
Value:
TEMPLATE T CommonProto::Serialise<T>::read(const StoreDirConfig & store, CommonProto::ReadConn conn) \
{ \
return LengthPrefixedProtoHelper<CommonProto, T>::read(store, conn); \
} \
TEMPLATE void CommonProto::Serialise<T>::write( \
const StoreDirConfig & store, CommonProto::WriteConn conn, const T & t) \
{ \
LengthPrefixedProtoHelper<CommonProto, T>::write(store, conn, t); \
}