Top | ![]() |
![]() |
![]() |
![]() |
A GMimeStream implementation using a memory-mapped file backing store. This may be faster than GMimeStreamFs or GMimeStreamFile but you'll have to do your own performance checking to be sure for your particular application/platform.
GMimeStream * g_mime_stream_mmap_new (int fd
,int prot
,int flags
);
Creates a new GMimeStreamMmap object around fd
.
GMimeStream * g_mime_stream_mmap_new_with_bounds (int fd
,int prot
,int flags
,gint64 start
,gint64 end
);
Creates a new GMimeStreamMmap object around fd
with bounds start
and end
.
struct GMimeStreamMmap { GMimeStream parent_object; gboolean owner; gboolean eos; int fd; char *map; size_t maplen; };
A memory-mapped GMimeStream.
GMimeStream |
parent GMimeStream |
|
|
||
|
||
file descriptor |
||
memory map |
||
length of the memory map |