BloombergLP::bslx::MarshallingUtil::putInt40

Load into the specified buffer the five-byte, two's complement integer (in network byte order) comprised of the least-significant five bytes of the specified value (in host byte order). The behavior is undefined unless buffer has sufficient capacity. Note that this function applies equally to unsigned 64-bit values.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
putInt40(
    char* buffer,
    bsls::Types::Int64 value);