You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shuffle3/src/map_callback.cpp

12 lines
209 B

#include <shuffle3.h>
#include <reinterpret.hpp>
#include <map.h>
extern "C" void* map_and_then(const char* file, map_cb callback, void* user)
{
mm::mmap map(file);
return callback(map.as_raw(), user);
}