2022-01-05 17:12:38 -08:00
|
|
|
/*
|
|
|
|
* FragmentEntry.h
|
|
|
|
*
|
|
|
|
* Created on: Jan 5, 2022
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2022
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct FragmentEntry {
|
2022-01-06 09:37:48 -08:00
|
|
|
FragmentEntry(const uint8_t *data, size_t size) {
|
2022-01-05 17:12:38 -08:00
|
|
|
this->data = data;
|
|
|
|
this->size = size;
|
|
|
|
}
|
|
|
|
|
2022-01-06 09:37:48 -08:00
|
|
|
const uint8_t *data;
|
2022-01-05 17:12:38 -08:00
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
|
|
|
|
void copyRange(uint8_t *destination, FragmentEntry *fragments, size_t dataOffset, size_t dataLength);
|