[#BloombergLP-bslx-MarshallingUtil-putInt16] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/MarshallingUtil.adoc[MarshallingUtil]::putInt16 :relfileprefix: ../../../ :mrdocs: Store a two‐byte integer into the specified `buffer`. == Synopsis Declared in `<bslx_marshallingutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void putInt16( char* buffer, int value); ---- == Description Load into the specified `buffer` the two‐byte, two's complement integer (in network byte order) comprised of the least‐significant two bytes of the specified `value` (in host byte order). The behavior is undefined unless `buffer` has sufficient capacity. Note that this function applies equally to unsigned 32‐bit values, and signed and unsigned 16‐ and 8‐bit values. == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | destination buffer in network byte order | *value* | host‐order two‐byte integer to write |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#