[#node-BlockManager-ReadRawBlock]
= xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::ReadRawBlock
:relfileprefix: ../../
:mrdocs:

Read the raw, still&hyphen;serialized bytes of a block (or a sub&hyphen;range) from disk&period;

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:node/BlockManager/ReadRawBlockResult.adoc[ReadRawBlockResult]
ReadRawBlock(
    xref:FlatFilePos.adoc[FlatFilePos] const& pos,
    std::optional&lt;std::pair&lt;size&lowbar;t, size&lowbar;t&gt;&gt; block&lowbar;part = std&colon;&colon;nullopt) const;
----

== Return Value

The requested bytes on success, or a ReadRawError on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| Position of the serialized block on disk&period;
| *block&lowbar;part*
| Optional (offset, length) sub&hyphen;range of the block to read&period;
|===


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