[#BloombergLP-bslim-FuzzDataView-removeSuffix]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]::removeSuffix
:relfileprefix: ../../../
:mrdocs:

Remove a suffix of this view and return a view of the removed bytes&period;

== Synopsis

Declared in `&lt;bslim&lowbar;fuzzdataview&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]
removeSuffix(std::size&lowbar;t numBytes);
----

== Description

Remove the specified last `numBytes` from this view if `numBytes &lt;&equals; length()` and remove `length()` bytes otherwise&semi; return a view to the bytes that were removed&period; Note that this method will decrease the length of this view by `min(numBytes, length())` bytes&period;

== Return Value

a view of the bytes that were removed

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numBytes*
| number of bytes to remove from the end of this view
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
