Add new comment

For testing (it uses extra

For testing (it uses extra memory, so not mobile friendly):

char *buffer = malloc(filesize);
read(fd,buffer,filesize);
close(fd);
LibRaw::open_buffer(buffer,filesize);

should work.
And replace with your own LibRaw_datastream implementation later.

-- Alex Tutubalin @LibRaw LLC