Provide utilities for marshalling fundamental types in network byte order.

Synopsis

Declared in <bslx_marshallingutil.h>

struct MarshallingUtil;

Description

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

Enums

Name

Description

Unnamed enum

Platform‐independent wire‐format sizes (in bytes) for marshalled types. Note that the wire‐format size may differ from the size in memory.

Static Member Functions

Name

Description

getArrayFloat32

Load consecutive four‐byte IEEE floats from the specified buffer.

getArrayFloat64

Load consecutive eight‐byte IEEE doubles from the specified buffer.

getArrayInt16

Load consecutive two‐byte integers from the specified buffer.

getArrayInt24

Load consecutive three‐byte integers from the specified buffer.

getArrayInt32

Load consecutive four‐byte integers from the specified buffer.

getArrayInt40

Load 40‐bit integers from buffer into variables.

getArrayInt48

Load consecutive six‐byte integers from the specified buffer.

getArrayInt56

Load consecutive seven‐byte integers from the specified buffer.

getArrayInt64

Load consecutive eight‐byte integers from the specified buffer.

getArrayInt8

getArrayInt8 overloads

getArrayUint16

Load consecutive two‐byte unsigned integers from the specified buffer.

getArrayUint24

Load consecutive three‐byte unsigned integers from the specified buffer.

getArrayUint32

Load numVariables big‐endian uint32 values from buffer.

getArrayUint40

Load consecutive five‐byte unsigned integers from the specified buffer.

getArrayUint48

Load consecutive six‐byte unsigned integers from the specified buffer.

getArrayUint56

Load consecutive seven‐byte unsigned integers from the specified buffer.

getArrayUint64

Load consecutive eight‐byte unsigned integers from the specified buffer.

getFloat32

Load a four‐byte IEEE float from the specified buffer.

getFloat64

Load an eight‐byte IEEE double from the specified buffer.

getInt16

Load a two‐byte integer from the specified buffer.

getInt24

Load a three‐byte integer from the specified buffer.

getInt32

Load a four‐byte integer from the specified buffer.

getInt40

Load a five‐byte two's complement integer from buffer.

getInt48

Load a six‐byte integer from the specified buffer.

getInt56

Load a seven‐byte integer from the specified buffer.

getInt64

Load an eight‐byte integer from the specified buffer.

getInt8

getInt8 overloads

getUint16

Load a two‐byte unsigned integer from the specified buffer.

getUint24

Load a three‐byte unsigned integer from the specified buffer.

getUint32

Load a four‐byte unsigned integer from the specified buffer.

getUint40

Load a five‐byte unsigned integer from the specified buffer.

getUint48

Load a six‐byte unsigned integer from the specified buffer.

getUint56

Load a seven‐byte unsigned integer from the specified buffer.

getUint64

Load an eight‐byte unsigned integer from the specified buffer.

putArrayFloat32

Store consecutive four‐byte IEEE floats into the specified buffer.

putArrayFloat64

Store consecutive eight‐byte IEEE doubles into the specified buffer.

putArrayInt16

putArrayInt16 overloads

putArrayInt24

putArrayInt24 overloads

putArrayInt32

putArrayInt32 overloads

putArrayInt40

putArrayInt40 overloads

putArrayInt48

putArrayInt48 overloads

putArrayInt56

putArrayInt56 overloads

putArrayInt64

putArrayInt64 overloads

putArrayInt8

putArrayInt8 overloads

putFloat32

Store a four‐byte IEEE float into the specified buffer.

putFloat64

Store an eight‐byte IEEE double into the specified buffer.

putInt16

Store a two‐byte integer into the specified buffer.

putInt24

Store a three‐byte integer into the specified buffer.

putInt32

Store a four‐byte integer into the specified buffer.

putInt40

Store a five‐byte integer into the specified buffer.

putInt48

Store a six‐byte integer into the specified buffer.

putInt56

Store a seven‐byte integer into the specified buffer.

putInt64

Store an eight‐byte integer into the specified buffer.

putInt8

Store a one‐byte integer into the specified buffer.

Created with MrDocs