Add support for LongArrayT params

nix
Owen Green 6 years ago
parent eb6aeb0304
commit b2a295d8b3

@ -987,6 +987,24 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase<C>
ft->fRTFree(w,chunk); ft->fRTFree(w,chunk);
return res; return res;
} }
static auto fromArgs(Unit*, FloatControlsIter& args,typename LongArrayT::type&, int)
{
//first is array size, then items
using Container = typename LongArrayT::type;
using Value = typename Container::type;
index size = static_cast<index>(args.next());
Container res(size);
for (index i = 0; i < size; ++i)
res[i] = static_cast<Value>(args.next());
return res;
}
template <typename T> template <typename T>
static std::enable_if_t<std::is_integral<T>::value, T> static std::enable_if_t<std::is_integral<T>::value, T>

Loading…
Cancel
Save