Add support for passing an mmap object to the API.