consumeRandomLengthString overloads

Synopses

Declared in <bslim_fuzzutil.h>

Load into the specified output a string of length from 0 to the specified maxLength. If the specified fuzzDataView has fewer bytes than maxLength, load at most fuzzDataView‐>length() bytes into output. If the buffer in fuzzDataView contains two successive backslash characters, then in output they will be converted to a single backslash () character; if a single backslash character is encountered, the consumption of bytes is terminated. Note that because double backslashes are mapped to single backslashes, more than maxLength bytes may be consumed from the buffer to produce the output.

static
void
consumeRandomLengthString(
    bsl::string* output,
    FuzzDataView* fuzzDataView,
    std::size_t maxLength);

Same as the preceding overload for std::pmr::string.

static
void
consumeRandomLengthString(
    std::pmr::string* output,
    FuzzDataView* fuzzDataView,
    std::size_t maxLength);

Same as the preceding overload for std::string.

static
void
consumeRandomLengthString(
    std::string* output,
    FuzzDataView* fuzzDataView,
    std::size_t maxLength);

Created with MrDocs