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.
2 parents 53f72f1 + c447e5f commit 5592142Copy full SHA for 5592142
3rdparty/openvx/include/ivx.hpp
@@ -2135,6 +2135,14 @@ class Array : public RefWrapper<vx_array>
2135
IVX_CHECK_STATUS(vxAddArrayItems(ref, count, ptr, stride));
2136
}
2137
2138
+ void truncateArray(vx_size new_count)
2139
+ {
2140
+ if(new_count <= itemCount())
2141
+ IVX_CHECK_STATUS(vxTruncateArray(ref, new_count));
2142
+ else
2143
+ throw WrapperError(std::string(__func__) + "(): array is too small");
2144
+ }
2145
+
2146
void copyRangeTo(size_t start, size_t end, void* data)
2147
{
2148
if (!data) throw WrapperError(std::string(__func__) + "(): output pointer is 0");
0 commit comments