senf::init_bytes< Parser > Struct Template Reference
[The PacketParser facility]

Return number of bytes to allocate to new object of given type. More...

#include <senf/Packets/PacketParser.hh>


Detailed Description

template<class Parser>
struct senf::init_bytes< Parser >

Return number of bytes to allocate to new object of given type.

This meta-function is called like

This expression evaluates to a compile-time constant integral expression of type senf::PacketParserBase::size_type. This meta-function will return Parser::fixed_bytes or Parser::init_bytes depending on the type of parser.

Parameters:
[in]  Parser  The Parser to return init_bytes for
Returns:
Number of bytes to allocate to the new object

Definition at line 425 of file PacketParser.hh.


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