[#BloombergLP-bslx-MarshallingUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::MarshallingUtil
:relfileprefix: ../../
:mrdocs:

Provide utilities for marshalling fundamental types in network byte order&period;

== Synopsis

Declared in `&lt;bslx&lowbar;marshallingutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct MarshallingUtil;
----

== Description

This `struct` provides a namespace for a suite of functions that facilitate the marshalling of values, and C&hyphen;style arrays of values, of the fundamental integral and floating&hyphen;point types in a data&hyphen;independent, platform&hyphen;neutral representation&period;

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslx/MarshallingUtil/_04enum.adoc[`Unnamed enum`] 
| Platform&hyphen;independent wire&hyphen;format sizes (in bytes) for marshalled types&period; Note that the wire&hyphen;format size may differ from the size in memory&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslx/MarshallingUtil/getArrayFloat32.adoc[`getArrayFloat32`] 
| Load consecutive four&hyphen;byte IEEE floats from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayFloat64.adoc[`getArrayFloat64`] 
| Load consecutive eight&hyphen;byte IEEE doubles from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt16.adoc[`getArrayInt16`] 
| Load consecutive two&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt24.adoc[`getArrayInt24`] 
| Load consecutive three&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt32.adoc[`getArrayInt32`] 
| Load consecutive four&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt40.adoc[`getArrayInt40`] 
| Load 40&hyphen;bit integers from `buffer` into `variables`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt48.adoc[`getArrayInt48`] 
| Load consecutive six&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt56.adoc[`getArrayInt56`] 
| Load consecutive seven&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt64.adoc[`getArrayInt64`] 
| Load consecutive eight&hyphen;byte integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayInt8-057.adoc[`getArrayInt8`] 
| `getArrayInt8` overloads
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint16.adoc[`getArrayUint16`] 
| Load consecutive two&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint24.adoc[`getArrayUint24`] 
| Load consecutive three&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint32.adoc[`getArrayUint32`] 
| Load `numVariables` big&hyphen;endian `uint32` values from `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint40.adoc[`getArrayUint40`] 
| Load consecutive five&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint48.adoc[`getArrayUint48`] 
| Load consecutive six&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint56.adoc[`getArrayUint56`] 
| Load consecutive seven&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getArrayUint64.adoc[`getArrayUint64`] 
| Load consecutive eight&hyphen;byte unsigned integers from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getFloat32.adoc[`getFloat32`] 
| Load a four&hyphen;byte IEEE float from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getFloat64.adoc[`getFloat64`] 
| Load an eight&hyphen;byte IEEE double from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt16.adoc[`getInt16`] 
| Load a two&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt24.adoc[`getInt24`] 
| Load a three&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt32.adoc[`getInt32`] 
| Load a four&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt40.adoc[`getInt40`] 
| Load a five&hyphen;byte two&apos;s complement integer from `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt48.adoc[`getInt48`] 
| Load a six&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt56.adoc[`getInt56`] 
| Load a seven&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt64.adoc[`getInt64`] 
| Load an eight&hyphen;byte integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getInt8-03.adoc[`getInt8`] 
| `getInt8` overloads
| xref:BloombergLP/bslx/MarshallingUtil/getUint16.adoc[`getUint16`] 
| Load a two&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint24.adoc[`getUint24`] 
| Load a three&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint32.adoc[`getUint32`] 
| Load a four&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint40.adoc[`getUint40`] 
| Load a five&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint48.adoc[`getUint48`] 
| Load a six&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint56.adoc[`getUint56`] 
| Load a seven&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/getUint64.adoc[`getUint64`] 
| Load an eight&hyphen;byte unsigned integer from the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putArrayFloat32.adoc[`putArrayFloat32`] 
| Store consecutive four&hyphen;byte IEEE floats into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putArrayFloat64.adoc[`putArrayFloat64`] 
| Store consecutive eight&hyphen;byte IEEE doubles into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt16-02.adoc[`putArrayInt16`] 
| `putArrayInt16` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt24-07.adoc[`putArrayInt24`] 
| `putArrayInt24` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt32-02.adoc[`putArrayInt32`] 
| `putArrayInt32` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt40-05.adoc[`putArrayInt40`] 
| `putArrayInt40` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt48-06.adoc[`putArrayInt48`] 
| `putArrayInt48` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt56-0d.adoc[`putArrayInt56`] 
| `putArrayInt56` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt64-0d.adoc[`putArrayInt64`] 
| `putArrayInt64` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putArrayInt8-05.adoc[`putArrayInt8`] 
| `putArrayInt8` overloads
| xref:BloombergLP/bslx/MarshallingUtil/putFloat32.adoc[`putFloat32`] 
| Store a four&hyphen;byte IEEE float into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putFloat64.adoc[`putFloat64`] 
| Store an eight&hyphen;byte IEEE double into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt16.adoc[`putInt16`] 
| Store a two&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt24.adoc[`putInt24`] 
| Store a three&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt32.adoc[`putInt32`] 
| Store a four&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt40.adoc[`putInt40`] 
| Store a five&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt48.adoc[`putInt48`] 
| Store a six&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt56.adoc[`putInt56`] 
| Store a seven&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt64.adoc[`putInt64`] 
| Store an eight&hyphen;byte integer into the specified `buffer`&period;
| xref:BloombergLP/bslx/MarshallingUtil/putInt8.adoc[`putInt8`] 
| Store a one&hyphen;byte integer into the specified `buffer`&period;
|===



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