BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlt::FuzzUtil Struct Reference

#include <bdlt_fuzzutil.h>

Detailed Description

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

See bdlt_fuzzutil

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)
 
static DateTz consumeDateTz (bslim::FuzzDataView *fuzzDataView)
 
static DateTz consumeDateTzInRange (bslim::FuzzDataView *fuzzDataView, const bdlt::Date &begin, const bdlt::Date &end)
 
static Datetime consumeDatetime (bslim::FuzzDataView *fuzzDataView)
 
static Datetime consumeDatetimeInRange (bslim::FuzzDataView *fuzzDataView, const bdlt::Date &begin, const bdlt::Date &end)
 
static DatetimeTz consumeDatetimeTz (bslim::FuzzDataView *fuzzDataView)
 
static DatetimeTz consumeDatetimeTzInRange (bslim::FuzzDataView *fuzzDataView, const bdlt::Date &begin, const bdlt::Date &end)
 
static Time consumeTime (bslim::FuzzDataView *fuzzDataView)
 
static TimeTz consumeTimeTz (bslim::FuzzDataView *fuzzDataView)
 
static int consumeTz (bslim::FuzzDataView *fuzzDataView)
 

Member Function Documentation

◆ consumeDate()

bdlt::Date bdlt::FuzzUtil::consumeDate ( bslim::FuzzDataView fuzzDataView)
inlinestatic

Return a Date based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeDateInRange()

bdlt::Date bdlt::FuzzUtil::consumeDateInRange ( bslim::FuzzDataView fuzzDataView,
const bdlt::Date begin,
const bdlt::Date end 
)
inlinestatic

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.

Precondition
The behavior is undefined unless begin <= end.

◆ consumeDatetime()

static Datetime bdlt::FuzzUtil::consumeDatetime ( bslim::FuzzDataView fuzzDataView)
static

Return a Datetime based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeDatetimeInRange()

static Datetime bdlt::FuzzUtil::consumeDatetimeInRange ( bslim::FuzzDataView fuzzDataView,
const bdlt::Date begin,
const bdlt::Date end 
)
static

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.

Precondition
The behavior is undefined unless begin <= end.

◆ consumeDatetimeTz()

static DatetimeTz bdlt::FuzzUtil::consumeDatetimeTz ( bslim::FuzzDataView fuzzDataView)
static

Return a DatetimeTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeDatetimeTzInRange()

static DatetimeTz bdlt::FuzzUtil::consumeDatetimeTzInRange ( bslim::FuzzDataView fuzzDataView,
const bdlt::Date begin,
const bdlt::Date end 
)
static

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.

Precondition
The behavior is undefined unless begin <= end.

◆ consumeDateTz()

static DateTz bdlt::FuzzUtil::consumeDateTz ( bslim::FuzzDataView fuzzDataView)
static

Return a DateTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeDateTzInRange()

static DateTz bdlt::FuzzUtil::consumeDateTzInRange ( bslim::FuzzDataView fuzzDataView,
const bdlt::Date begin,
const bdlt::Date end 
)
static

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.

Precondition
The behavior is undefined unless begin <= end.

◆ consumeTime()

static Time bdlt::FuzzUtil::consumeTime ( bslim::FuzzDataView fuzzDataView)
static

Return a Time based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeTimeTz()

static TimeTz bdlt::FuzzUtil::consumeTimeTz ( bslim::FuzzDataView fuzzDataView)
static

Return a TimeTz based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed.

◆ consumeTz()

int bdlt::FuzzUtil::consumeTz ( bslim::FuzzDataView fuzzDataView)
inlinestatic

Return a timezone offset in minutes.


The documentation for this struct was generated from the following file: