|
BDE 4.14.0 Production release
|
Provide creation of bdlt data types from fuzz data.
bdlt data types from fuzz dataThis component defines a struct, bdlt::FuzzUtil, which serves as a namespace for functions to create bdlt data types from supplied fuzz input data.
This section illustrates intended use of this component.
The provided fuzz data is here represented by an array of bytes:
First, we default construct a bslim::FuzzDataView object, fdv:
Next, we construct Date objects to represent the begin and end of the time interval in which we wish to construct our new Date from the fuzz data:
Finally, we create a Date object, within, by employing bdlt_fuzzutil :