/* * FragmentEntry.h * * Created on: Jan 5, 2022 * @author Andrey Belomutskiy, (c) 2012-2022 */ #pragma once struct FragmentEntry { template FragmentEntry(const TData* data) : data(reinterpret_cast(data)) , size(sizeof(TData)) { } const uint8_t* const data; const size_t size; }; struct FragmentList { const FragmentEntry* fragments; const size_t count; }; // copy `size` of fragmented outputs in to destination, skipping the first `skip` bytes void copyRange(uint8_t* destination, FragmentList src, size_t skip, size_t size);