BloombergLP::bslim::FuzzDataView

This type represents a view of a buffer of bytes provided by a fuzz testing harness.

Synopsis

Declared in <bslim_fuzzdataview.h>

class FuzzDataView;

Member Functions

NameDescription
FuzzDataView [constructor]Create a FuzzDataView object from the specified fuzz data and size. The behavior is undefined unless data || (0 == size).
begin Return a const pointer to the beginning of the buffer.
data Return a pointer to the beginning of the buffer.
end Return a const pointer to the end of the buffer.
length Return the length in bytes of the buffer.
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.
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.