[#CInv-2constructor-06]
= xref:CInv.adoc[CInv]::CInv
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;protocol&period;h&gt;`

Constructs an inventory entry with an undefined type and null hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CInv/2constructor-0f.adoc[CInv]();
----

[.small]#xref:CInv/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Constructs an inventory entry from a type and object hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CInv/2constructor-0d.adoc[CInv](
    uint32&lowbar;t typeIn,
    xref:uint256.adoc[uint256] const& hashIn);
----

[.small]#xref:CInv/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *typeIn*
| The inventory type, one of the GetDataMsg values&period;
| *hashIn*
| The hash of the referenced object&period;
|===


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