[#index_util-DBHeightKey] = xref:index_util.adoc[index_util]::DBHeightKey :relfileprefix: ../ :mrdocs: Database key for an index entry looked up by block height. == Synopsis Declared in `<index/db_key.h>` [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. | xref:index_util/DBHeightKey/Serialize.adoc[`Serialize`] | Serialize the key as a prefix byte followed by the big‐endian height. | xref:index_util/DBHeightKey/Unserialize.adoc[`Unserialize`] | Read the key back, verifying the prefix and decoding the height. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:index_util/DBHeightKey/height.adoc[`height`] | Block height this key refers to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#