8#ifndef INCLUDED_BSLIM_FUZZDATAVIEW
9#define INCLUDED_BSLIM_FUZZDATAVIEW
111#include <bslscm_version.h>
115#include <bsl_algorithm.h>
116#include <bsl_cstddef.h>
117#include <bsl_cstdint.h>
134 const bsl::uint8_t *d_data_p;
135 bsl::size_t d_length;
174 const bsl::uint8_t *
begin()
const;
177 const bsl::uint8_t *
end()
const;
180 bsl::size_t
length()
const;
183 const bsl::uint8_t *
data()
const;
209 d_data_p += prefix.
length();
210 d_length -= prefix.
length();
218 bsl::size_t num = bsl::min(numBytes,
length());
236 return d_data_p + d_length;
Definition bslim_fuzzdataview.h:130
~FuzzDataView()=default
Destroy this object.
FuzzDataView(const FuzzDataView &original)=default
const bsl::uint8_t * data() const
Return a pointer to the beginning of the buffer.
Definition bslim_fuzzdataview.h:246
const bsl::uint8_t * end() const
Return a const pointer to the end of the buffer.
Definition bslim_fuzzdataview.h:234
const bsl::uint8_t * begin() const
Return a const pointer to the beginning of the buffer.
Definition bslim_fuzzdataview.h:228
FuzzDataView removeSuffix(bsl::size_t numBytes)
Definition bslim_fuzzdataview.h:216
FuzzDataView removePrefix(bsl::size_t numBytes)
Definition bslim_fuzzdataview.h:205
FuzzDataView(const bsl::uint8_t *data, bsl::size_t size)
Definition bslim_fuzzdataview.h:196
bsl::size_t length() const
Return the length in bytes of the buffer.
Definition bslim_fuzzdataview.h:240
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslim_formatguard.h:120