| GMime Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GMimeStreamMmap;
GMimeStream * g_mime_stream_mmap_new (int fd,
int prot,
int flags);
GMimeStream * g_mime_stream_mmap_new_with_bounds (int fd,
int prot,
int flags,
off_t start,
off_t end);
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.
|
file descriptor |
|
protection flags |
|
map flags |
Returns : |
a stream using fd.
|
GMimeStream * g_mime_stream_mmap_new_with_bounds (int fd, int prot, int flags, off_t start, off_t end);
Creates a new GMimeStreamMmap object around fd with bounds start
and end.
|
file descriptor |
|
protection flags |
|
map flags |
|
start boundary |
|
end boundary |
Returns : |
a stream using fd with bounds start and end.
|