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

Go to the source code of this file.

Classes

struct  nix::ServeProto::Serialise< T >
 

Macros

#define SERVE_USE_LENGTH_PREFIX_SERIALISER(TEMPLATE, T)
 
#define SERVE_USE_LENGTH_PREFIX_SERIALISER_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

◆ SERVE_USE_LENGTH_PREFIX_SERIALISER

#define SERVE_USE_LENGTH_PREFIX_SERIALISER ( TEMPLATE,
T )
Value:
TEMPLATE T ServeProto::Serialise< T >::read(const StoreDirConfig & store, ServeProto::ReadConn conn) \
{ \
return LengthPrefixedProtoHelper<ServeProto, T >::read(store, conn); \
} \
TEMPLATE void ServeProto::Serialise< T >::write(const StoreDirConfig & store, ServeProto::WriteConn conn, const T & t) \
{ \
LengthPrefixedProtoHelper<ServeProto, T >::write(store, conn, t); \
}
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
T t
Definition lexer.l:154