Nix 2.26.3
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 exmample 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); \
}
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
T t
Definition lexer.l:154