[#BloombergLP-bslim-FuzzUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::FuzzUtil :relfileprefix: ../../ :mrdocs: This utility `struct` provides a namespace for a suite of functions operating on objects of type `FuzzDataView`and providing the consumption of fuzz data bytes into fundamental and standard library types. == Synopsis Declared in `<bslim_fuzzutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FuzzUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslim/FuzzUtil/consumeBool.adoc[`consumeBool`] | Return a `bool` value based upon consuming a single byte from the specified `fuzzDataView`. If `fuzzDataView‐>length()` is 0, return `false`. | xref:BloombergLP/bslim/FuzzUtil/consumeNumber-0b.adoc[`consumeNumber`] | Return a value of (template parameter) `TYPE` in the range [min .. max]‐‐ where `min` and `max` are the minimum and maximum values representable by the `TYPE` ‐‐ based on at most the next `sizeof(TYPE) + 1` bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. If `0 == fuzzDataView‐>length()`, return the minimum value of `TYPE`. This function does not participate in overload resolution unless either `bsl::is_integral<TYPE>::value` or `bsl::is_floating_point<TYPE>::value` is `true`. The behavior is undefined if `bsl::is_same<TYPE, bool>::value` or `bsl::is_same<TYPE, long double>` is `true`. | xref:BloombergLP/bslim/FuzzUtil/consumeNumberInRange-0c.adoc[`consumeNumberInRange`] | `consumeNumberInRange` overloads | xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-03.adoc[`consumeRandomLengthAsciiString`] | `consumeRandomLengthAsciiString` overloads | xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthChars-06.adoc[`consumeRandomLengthChars`] | `consumeRandomLengthChars` overloads | xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthString-06.adoc[`consumeRandomLengthString`] | `consumeRandomLengthString` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#