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 based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed. The behavior is undefined unless begin <= end.
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 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.
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 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.
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 dateTz().localDate() is 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.
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.