[#BloombergLP-bdldfp-DecimalConvertUtil-decimalToNetwork-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimalToNetwork
:relfileprefix: ../../../
:mrdocs:

`decimalToNetwork` overloads

== Synopses

Declared in `&lt;bdldfp&lowbar;decimalconvertutil&period;h&gt;`

Same as the related overload above for `decimalToNetwork`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned char*
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-01.adoc[decimalToNetwork](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-01.adoc[_» more&period;&period;&period;_]#

Store the specified `decimal`, in network format, into the specified `buffer` and return the address one past the last byte written into the `buffer`&period; The network format is defined as big endian byte order and densely packed base&hyphen;10 significand encoding&period; This corresponds to the way IBM hardware represents these numbers in memory&period; The behavior is undefined unless `buffer` points to a memory area at least `sizeof(decimal)` in size&period; Note that these functions always return `buffer &plus; sizeof(decimal)` on the supported 8&hyphen;bits&hyphen;byte architectures&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned char*
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-09.adoc[decimalToNetwork](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-09.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `decimalToNetwork`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned char*
xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-0f.adoc[decimalToNetwork](
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] decimal);
----

[.small]#xref:BloombergLP/bdldfp/DecimalConvertUtil/decimalToNetwork-0f.adoc[_» more&period;&period;&period;_]#


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