[#btck_block_header_create]
= btck&lowbar;block&lowbar;header&lowbar;create
:mrdocs:

Create a btck&lowbar;BlockHeader from serialized data&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_BlockHeader-00.adoc[btck&lowbar;BlockHeader]*
btck&lowbar;block&lowbar;header&lowbar;create(
    void const* raw&lowbar;block&lowbar;header,
    size&lowbar;t raw&lowbar;block&lowbar;header&lowbar;len);
----

== Return Value

btck&lowbar;BlockHeader, or null on error&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *raw&lowbar;block&lowbar;header* [in]
| Non&hyphen;null, serialized header data (80 bytes)
| *raw&lowbar;block&lowbar;header&lowbar;len* [in]
| Length of serialized header (must be 80)
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
