BloombergLP::bslx::MarshallingUtil::putInt8

Store a one-byte integer into the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
putInt8(
    char* buffer,
    int value);

Description

Load into the specified buffer the one-byte, two's complement integer comprised of the least-significant one byte of the specified value. The behavior is undefined unless buffer has sufficient capacity. Note that this function applies equally to unsigned 32-bit values, and signed and unsigned 16- and 8-bit values.

Parameters

NameDescription
bufferdestination buffer
valuehost-order one-byte integer to write