gmime-stream-mmap

Name

gmime-stream-mmap -- 

Synopsis



#define     GMIME_STREAM_MMAP_TYPE
#define     GMIME_IS_STREAM_MMAP            (stream)
#define     GMIME_STREAM_MMAP               (stream)
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);

Description

Details

GMIME_STREAM_MMAP_TYPE

#define GMIME_STREAM_MMAP_TYPE g_str_hash ("GMimeStreamMmap")


GMIME_IS_STREAM_MMAP()

#define GMIME_IS_STREAM_MMAP(stream) (((GMimeStream *) stream)->type == GMIME_STREAM_MMAP_TYPE)

stream : 


GMIME_STREAM_MMAP()

#define GMIME_STREAM_MMAP(stream) ((GMimeStreamMmap *) stream)

stream : 


g_mime_stream_mmap_new ()

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.


g_mime_stream_mmap_new_with_bounds ()

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.

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.