Quick Links: |
#include <bslim_fuzzdataview.h>
Public Member Functions | |
FuzzDataView (const bsl::uint8_t *data, bsl::size_t size) | |
FuzzDataView | removePrefix (bsl::size_t numBytes) |
FuzzDataView | removeSuffix (bsl::size_t numBytes) |
const bsl::uint8_t * | begin () const |
const bsl::uint8_t * | end () const |
bsl::size_t | length () const |
const bsl::uint8_t * | data () const |
This type represents a view of a buffer of bytes provided by a fuzz testing harness.
See Component bslim_fuzzdataview
bslim::FuzzDataView::FuzzDataView | ( | const bsl::uint8_t * | data, | |
bsl::size_t | size | |||
) |
Create a FuzzDataView
object from the specified fuzz data
and size
. The behavior is undefined unless data || (0 == size)
.
FuzzDataView bslim::FuzzDataView::removePrefix | ( | bsl::size_t | numBytes | ) |
FuzzDataView bslim::FuzzDataView::removeSuffix | ( | bsl::size_t | numBytes | ) |
const bsl::uint8_t* bslim::FuzzDataView::begin | ( | ) | const |
Return a const pointer to the beginning of the buffer.
const bsl::uint8_t* bslim::FuzzDataView::end | ( | ) | const |
Return a const pointer to the end of the buffer.
bsl::size_t bslim::FuzzDataView::length | ( | ) | const |
Return the length in bytes of the buffer.
const bsl::uint8_t* bslim::FuzzDataView::data | ( | ) | const |
Return a pointer to the beginning of the buffer.