c - File Path to in memory file -
i have void *buffer
instance of file in ram.
the file type in format must parsed api given.
unfortunately, way open file type through api supply api file path:
sample_api_open(char *file_name, ...);
i understand shm_open
returns file descriptor, api takes file path.
is there work around read type of file in memory?
instead of using posix shared memory, open temporary file , mmap()
it. make buffer end in mmap()
-ed region can call api on temporary file.