[#BloombergLP-bslx-MarshallingUtil-getUint24] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/MarshallingUtil.adoc[MarshallingUtil]::getUint24 :relfileprefix: ../../../ :mrdocs: Load a three‐byte unsigned integer from the specified `buffer`. == Synopsis Declared in `<bslx_marshallingutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void getUint24( unsigned int* variable, char const* buffer); ---- == Description Load into the specified `variable` the three‐byte, two's complement unsigned integer (in host byte order) comprised of the initial three bytes of the specified `buffer` (in network byte order). The behavior is undefined unless `buffer` has sufficient contents. Note that the value will be zero‐extended. == Parameters [cols="1,4"] |=== | Name| Description | *variable* | destination for the host‐order three‐byte unsigned integer | *buffer* | source buffer in network byte order |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#