BloombergLP::bslx::MarshallingUtil::putArrayInt48

Store consecutive six-byte integers from the specified values into the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
putArrayInt48(
    char* buffer,
    bsls::Types::Int64 const* values,
    int numValues);

Description

Load into the specified buffer the consecutive six-byte, two's complement integers (in network byte order) comprised of the least-significant six bytes of each of the specified numValues leading entries in the specified values (in host byte order). The behavior is undefined unless buffer has sufficient capacity, values has sufficient contents, and 0 <= numValues.

Parameters

NameDescription
bufferdestination buffer in network byte order
valuesarray of host-order six-byte integers to write
numValuesnumber of values to write