Remove a suffix of this view and return a view of the removed bytes.

Synopsis

Declared in <bslim_fuzzdataview.h>

FuzzDataView
removeSuffix(std::size_t numBytes);

Description

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.

Return Value

a view of the bytes that were removed

Parameters

Name

Description

numBytes

number of bytes to remove from the end of this view

Created with MrDocs