Kick-off use of etl algorithms to replace the raw loops in byte_stream

This commit is contained in:
Joris Putcuyps 2026-04-08 18:40:25 +02:00
parent 912e22f238
commit d14f7673c5

View File

@ -177,13 +177,7 @@ namespace etl
template <typename T>
typename etl::enable_if<etl::is_integral<T>::value || etl::is_floating_point<T>::value, void>::type write_unchecked(const etl::span<T>& range)
{
typename etl::span<T>::iterator itr = range.begin();
while (itr != range.end())
{
to_bytes(*itr);
++itr;
}
etl::for_each(range.cbegin(), range.cend(), [this](T const& t) { to_bytes(t); });
}
//***************************************************************************