[#index_util-DBHeightKey]
= xref:index_util.adoc[index&lowbar;util]::DBHeightKey
:relfileprefix: ../
:mrdocs:

Database key for an index entry looked up by block height&period;

== Synopsis

Declared in `&lt;index&sol;db&lowbar;key&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DBHeightKey;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:index_util/DBHeightKey/2constructor.adoc[`DBHeightKey`]         [.small]#[constructor]#
| Construct a height key for the given block height&period;
| xref:index_util/DBHeightKey/Serialize.adoc[`Serialize`] 
| Serialize the key as a prefix byte followed by the big&hyphen;endian height&period;
| xref:index_util/DBHeightKey/Unserialize.adoc[`Unserialize`] 
| Read the key back, verifying the prefix and decoding the height&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:index_util/DBHeightKey/height.adoc[`height`] 
| Block height this key refers to&period;
|===



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