mirror of
https://github.com/siemens-mobile-hacks/libffshit.git
synced 2026-11-25 23:57:31 +00:00
13 lines
238 B
C++
13 lines
238 B
C++
#ifndef LIBFFSHIT_HELP_H
|
|
#define LIBFFSHIT_HELP_H
|
|
|
|
#include <cstring>
|
|
|
|
template<typename T>
|
|
static char *read_data(char *dst, char *src, size_t size) {
|
|
memcpy(dst, src, sizeof(T) * size);
|
|
|
|
return src + sizeof(T) * size;
|
|
}
|
|
|
|
#endif
|