BloombergLP::bdlat::FuzzUtil::consumeMessage

Populate a message from fuzz data using the specified options.

Synopsis

Declared in <bdlat_fuzzutil.h>

template<class t_MESSAGE>
static
void
consumeMessage(
    t_MESSAGE* message,
    bslim::FuzzDataView* fuzzData,
    FuzzUtilOptions const& options);

Description

Load into the specified message content generated using bytes from the specified fuzzData according to the specified options. See the overload without options for full contract details.

Parameters

NameDescription
messagemessage object to populate with generated content
fuzzDatafuzz input bytes; updated to reflect bytes consumed
optionsoptions controlling how fuzz data is consumed