[#BloombergLP-bdldfp-DecimalConvertUtil-decimalFromNetwork-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimalFromNetwork :relfileprefix: ../../../ :mrdocs: Store into `decimal` the value decoded from network format at `buffer`. == Synopsis Declared in `<bdldfp_decimalconvertutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static unsigned char const* decimalFromNetwork( xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]* decimal, unsigned char const* buffer); ---- == Description The network format is defined as big endian byte order and densely packed base‐10 significand encoding. This corresponds to the way IBM hardware represents these numbers in memory. The behavior is undefined unless `buffer` points to a memory area at least `sizeof(*decimal)` bytes. Note that these functions always return `buffer + sizeof(*decimal)` on the supported 8‐bits‐byte architectures. == Return Value address one past the last byte read == Parameters [cols="1,4"] |=== | Name| Description | *decimal* | receives the decoded value | *buffer* | buffer containing a network‐encoded value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#