Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::LengthPrefixedProtoHelper< Inner, T > Struct Template Reference

Detailed Description

template<class Inner, typename T>
struct nix::LengthPrefixedProtoHelper< Inner, T >

Reusable serialisers for serialization container types in a length-prefixed manner.

Parameters
TThe type of the collection being serialised
InnerThis the most important parameter; this is the "inner" protocol. The user of this will substitute MyProtocol or similar when making a MyProtocol::Serialiser<Collection<T>>. Note that the inside is allowed to call to call Inner::Serialiser on different types. This is especially important for std::map which doesn't have a single T but one K and one V.

The documentation for this struct was generated from the following file: