BloombergLP::bdlt::FuzzUtil

This utility struct provides a namespace for a suite of functions that produce objects of date and time values from fuzz data.

Synopsis

Declared in <bdlt_fuzzutil.h>

struct FuzzUtil;

Static Member Functions

NameDescription
consumeDate Return a Date based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeDateInRange Return a Date between the specified begin and end dates.
consumeDateTz Return a DateTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeDateTzInRange Return a DateTz whose localDate() is between begin and end.
consumeDatetime Return a Datetime based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeDatetimeInRange Return a Datetime whose date() is between begin and end.
consumeDatetimeTz Return a DatetimeTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeDatetimeTzInRange Return a DatetimeTz whose local date is between begin and end.
consumeTime Return a Time based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeTimeTz Return a TimeTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.
consumeTz Return a timezone offset in minutes.