blob: 99a5af6ee5410ec3daf8e2ae1c2bd8f767f45a0e (
plain) (
blame)
1
2
3
4
5
6
7
|
#include <library/cpp/resource/resource.h>
extern "C" void _magic_read_res(const char* res, void** out, size_t* size) {
TString s;
if (NResource::FindExact(res, &s) && (*size = s.size()) && (*out = malloc(*size)))
memcpy(*out, s.data(), *size);
}
|