BloombergLP::bslx::MarshallingUtil::putInt64

Store an eight-byte integer into the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

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

Description

Load into the specified buffer the eight-byte, two's complement integer (in network byte order) comprised of the least-significant eight 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.

Parameters

NameDescription
bufferdestination buffer in network byte order
valuehost-order eight-byte integer to write