[#BloombergLP-bslx-MarshallingUtil-putInt64]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/MarshallingUtil.adoc[MarshallingUtil]::putInt64
:relfileprefix: ../../../
:mrdocs:

Store an eight&hyphen;byte integer into the specified `buffer`&period;

== Synopsis

Declared in `&lt;bslx&lowbar;marshallingutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
putInt64(
    char* buffer,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] value);
----

== Description

Load into the specified `buffer` the eight&hyphen;byte, two&apos;s complement integer (in network byte order) comprised of the least&hyphen;significant eight bytes of the specified `value` (in host byte order)&period; The behavior is undefined unless `buffer` has sufficient capacity&period; Note that this function applies equally to unsigned 64&hyphen;bit values&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| destination buffer in network byte order
| *value*
| host&hyphen;order eight&hyphen;byte integer to write
|===


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