gmime-stream-mem

Name

gmime-stream-mem -- 

Synopsis



#define     GMIME_STREAM_MEM_TYPE
#define     GMIME_IS_STREAM_MEM             (stream)
#define     GMIME_STREAM_MEM                (stream)
GMimeStream* g_mime_stream_mem_new          (void);
GMimeStream* g_mime_stream_mem_new_with_byte_array
                                            (GByteArray *array);
GMimeStream* g_mime_stream_mem_new_with_buffer
                                            (const char *buffer,
                                             size_t len);
void        g_mime_stream_mem_set_byte_array
                                            (GMimeStreamMem *mem,
                                             GByteArray *array);

Description

Details

GMIME_STREAM_MEM_TYPE

#define GMIME_STREAM_MEM_TYPE g_str_hash ("GMimeStreamMem")


GMIME_IS_STREAM_MEM()

#define GMIME_IS_STREAM_MEM(stream) (((GMimeStream *) stream)->type == GMIME_STREAM_MEM_TYPE)

stream : 


GMIME_STREAM_MEM()

#define GMIME_STREAM_MEM(stream) ((GMimeStreamMem *) stream)

stream : 


g_mime_stream_mem_new ()

GMimeStream* g_mime_stream_mem_new          (void);

Returns :a new memory stream.


g_mime_stream_mem_new_with_byte_array ()

GMimeStream* g_mime_stream_mem_new_with_byte_array
                                            (GByteArray *array);

array : 
Returns :a new memory stream using array.


g_mime_stream_mem_new_with_buffer ()

GMimeStream* g_mime_stream_mem_new_with_buffer
                                            (const char *buffer,
                                             size_t len);

buffer : 
len : 
Returns :a new memory stream initialized with buffer.


g_mime_stream_mem_set_byte_array ()

void        g_mime_stream_mem_set_byte_array
                                            (GMimeStreamMem *mem,
                                             GByteArray *array);

Sets the byte array on the memory stream. Note: The memory stream is not responsible for freeing the byte array.

mem : 
array :