libffshit/inc/ffshit/help.h
2025-06-14 12:02:33 +03:00

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