We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beea04c commit c447e5fCopy full SHA for c447e5f
3rdparty/openvx/include/ivx.hpp
@@ -2008,6 +2008,14 @@ class Array : public RefWrapper<vx_array>
2008
IVX_CHECK_STATUS(vxAddArrayItems(ref, count, ptr, stride));
2009
}
2010
2011
+ void truncateArray(vx_size new_count)
2012
+ {
2013
+ if(new_count <= itemCount())
2014
+ IVX_CHECK_STATUS(vxTruncateArray(ref, new_count));
2015
+ else
2016
+ throw WrapperError(std::string(__func__) + "(): array is too small");
2017
+ }
2018
+
2019
void copyRangeTo(size_t start, size_t end, void* data)
2020
{
2021
if (!data) throw WrapperError(std::string(__func__) + "(): output pointer is 0");
0 commit comments