GMime Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct 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, |
struct GMimeStreamMmap { GMimeStream parent_object; gboolean owner; gboolean eos; int fd; char *map; size_t maplen; }; |
GMimeStream* g_mime_stream_mmap_new (int fd, int prot, int flags); |
Creates a new GMimeStreamMmap object around fd.
fd : | file descriptor |
prot : | protection flags |
flags : | map flags |
Returns : | a stream using fd. |
GMimeStream* g_mime_stream_mmap_new_with_bounds (int fd, int prot, int flags, |
Creates a new GMimeStreamMmap object around fd with bounds start and end.
fd : | file descriptor |
prot : | protection flags |
flags : | map flags |
start : | start boundary |
end : | end boundary |
Returns : | a stream using fd with bounds start and end. |