[#BloombergLP-bslim-FuzzDataView] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::FuzzDataView :relfileprefix: ../../ :mrdocs: This type represents a view of a buffer of bytes provided by a fuzz testing harness. == Synopsis Declared in `<bslim_fuzzdataview.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class FuzzDataView; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslim/FuzzDataView/2constructor.adoc[`FuzzDataView`] [.small]#[constructor]# | Create a `FuzzDataView` object from the specified fuzz `data` and `size`. The behavior is undefined unless `data || (0 == size)`. | xref:BloombergLP/bslim/FuzzDataView/begin.adoc[`begin`] | Return a const pointer to the beginning of the buffer. | xref:BloombergLP/bslim/FuzzDataView/data.adoc[`data`] | Return a pointer to the beginning of the buffer. | xref:BloombergLP/bslim/FuzzDataView/end.adoc[`end`] | Return a const pointer to the end of the buffer. | xref:BloombergLP/bslim/FuzzDataView/length.adoc[`length`] | Return the length in bytes of the buffer. | xref:BloombergLP/bslim/FuzzDataView/removePrefix.adoc[`removePrefix`] | Remove the specified initial `numBytes` from this view if `numBytes <= length()` and remove `length()` bytes otherwise; return a view to the bytes that were removed. Note that this method will decrease the length of this view by `min(numBytes, length())` bytes. | xref:BloombergLP/bslim/FuzzDataView/removeSuffix.adoc[`removeSuffix`] | Remove the specified last `numBytes` from this view if `numBytes <= length()` and remove `length()` bytes otherwise; return a view to the bytes that were removed. Note that this method will decrease the length of this view by `min(numBytes, length())` bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#