Previously I mentioned the Nimbus project which was designed to be a well documented replacement to the massive open source utility library Three20. The founder of Nimbus Jeff Verkoeyen has now posted an iOS version of fmemopen.
Something you may have noticed when working on the iOS platform is that the C function fmemopen is missing and this causes a lot of C code to need to be refactored. Or you might just want a concise way to manipulate file data in memory.
There’s a few open source versions of fmemopen out there, but with this version you know it’s compatible with iOS and optimized for performance.
I’m guessing if you’re reading this article you probably know what fmemopen is, but just in case here’s the description as stated on the Linux manual page:
FILE *fmemopen(void *buf, size_t size, const char *mode);
The fmemopen() function opens a stream that permits the access specified by mode. The stream allows I/O to be performed on the string or memory buffer pointed to by buf. This buffer must be at least size bytes long.
You can download the iOS/Mac fmemopen implementation from it’s homepage here.
A handy library to keep note of.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.