custom-board-bundle-sample-.../firmware/console/binary/FragmentEntry.h

22 lines
374 B
C
Raw Normal View History

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:01:37 -08:00
FragmentEntry(const void *data, size_t size) {
2022-01-05 17:12:38 -08:00
this->data = data;
this->size = size;
}
2022-01-06 09:01:37 -08:00
const void *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);