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

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
getArrayUint40(
    bsls::Types::Uint64* variables,
    char const* buffer,
    int numVariables);

Description

Load into the specified variables the consecutive five‐byte, two's complement unsigned integers (in host byte order) comprised of each of the specified numVariables leading five‐byte sequences in the specified buffer (in network byte order). The behavior is undefined unless variables has sufficient capacity, buffer has sufficient contents, and 0 <= numVariables. Note that each of the values will be zero‐extended.

Parameters

Name

Description

variables

array receiving host‐order five‐byte unsigned integers

buffer

source buffer in network byte order

numVariables

number of values to read

Created with MrDocs