[#CMessageHeader-2constructor-0e7] = xref:CMessageHeader.adoc[CMessageHeader]::CMessageHeader :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<protocol.h>` Constructs an empty message header. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:CMessageHeader/2constructor-05.adoc[CMessageHeader]() = default; ---- [.small]#xref:CMessageHeader/2constructor-05.adoc[_» more..._]# Construct a P2P message header from message‐start characters, a message type and the size of the message. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CMessageHeader/2constructor-0e4.adoc[CMessageHeader]( xref:MessageStartChars.adoc[MessageStartChars] const& pchMessageStartIn, char const* msg_type, unsigned int nMessageSizeIn); ---- [.small]#xref:CMessageHeader/2constructor-0e4.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *pchMessageStartIn* | Network magic bytes marking the start of the message. | *msg_type* | Null‐terminated message type string. | *nMessageSizeIn* | Size of the message payload in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#