Load a seven‐byte integer from the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
getInt56(
    bsls::Types::Int64* variable,
    char const* buffer);

Description

Load into the specified variable the seven‐byte, two's complement integer (in host byte order) comprised of the initial seven bytes of the specified buffer (in network byte order). The behavior is undefined unless buffer has sufficient contents. Note that the value will be sign‐extended.

Parameters

Name

Description

variable

destination for the host‐order seven‐byte integer

buffer

source buffer in network byte order

Created with MrDocs