[#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 overload taking `Decimal32`&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 `decimal` in network format into `buffer`&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 overload taking `Decimal32`&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;_]#

== Return Value

address one past the last byte written

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| receives the network encoding
| *decimal*
| value to encode
|===


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