Quick Links: |
#include <bdlt_fuzzutil.h>
Static Public Member Functions | |
static bdlt::Date | consumeDate (bslim::FuzzDataView *fuzzDataView) |
static bdlt::Date | consumeDateInRange (bslim::FuzzDataView *fuzzDataView, const bdlt::Date &begin, const bdlt::Date &end) |
This utility struct
provides a namespace for a suite of functions that produce objects of date and time values from fuzz data.
static bdlt::Date bdlt::FuzzUtil::consumeDate | ( | bslim::FuzzDataView * | fuzzDataView | ) | [static] |
Return a Date
based on the next bytes from the specified fuzzDataView
, and update fuzzDataView
to reflect the bytes consumed.
static bdlt::Date bdlt::FuzzUtil::consumeDateInRange | ( | bslim::FuzzDataView * | fuzzDataView, | |
const bdlt::Date & | begin, | |||
const bdlt::Date & | end | |||
) | [static] |
Return a Date
between the specified begin
and end
dates based on the next bytes from the specified fuzzDataView
, and update fuzzDataView
to reflect the bytes consumed. The behavior is undefined unless begin <= end
.