memory 3 GSF Library memory Synopsis GsfInputMemory; GsfInput* gsf_input_mmap_new (char const *filename, GError **err); GsfInput* gsf_input_memory_new (guint8 const *buf, gsf_off_t length, gboolean needs_free); GsfInput* gsf_input_memory_new_clone (guint8 const *buf, gsf_off_t length); GsfInput* gsf_input_memory_new_from_iochannel (GIOChannel *channel, GError **error); GsfOutputMemory; const guint8* gsf_output_memory_get_bytes (GsfOutputMemory *mem); GType gsf_output_memory_get_type (void); GsfOutput* gsf_output_memory_new (void); GsfSharedMemory; GsfSharedMemory* gsf_shared_memory_new (void *buf, gsf_off_t size, gboolean needs_free); GsfSharedMemory* gsf_shared_memory_mmapped_new (void *buf, gsf_off_t size); Object Hierarchy GObject +----GsfInput +----GsfInputMemory GObject +----GsfOutput +----GsfOutputMemory GObject +----GsfSharedMemory Description Details <anchor id="GsfInputMemory-struct"/>GsfInputMemory GsfInputMemorytypedef struct _GsfInputMemory GsfInputMemory; <anchor id="gsf-input-mmap-new"/>gsf_input_mmap_new () gsf_input_mmap_newGsfInput* gsf_input_mmap_new (char const *filename, GError **err); filename : The file on disk that you want to mmap err : A GError, or optionally null Returns : A new GsfInputMemory <anchor id="gsf-input-memory-new"/>gsf_input_memory_new () gsf_input_memory_newGsfInput* gsf_input_memory_new (guint8 const *buf, gsf_off_t length, gboolean needs_free); buf : The input bytes length : The length of buf needs_free : Whether you want this memory to be free'd at object destruction Returns : A new GsfInputMemory <anchor id="gsf-input-memory-new-clone"/>gsf_input_memory_new_clone () gsf_input_memory_new_cloneGsfInput* gsf_input_memory_new_clone (guint8 const *buf, gsf_off_t length); buf : The input bytes length : The length of buf Returns : A new GsfInputMemory <anchor id="gsf-input-memory-new-from-iochannel"/>gsf_input_memory_new_from_iochannel () gsf_input_memory_new_from_iochannelGsfInput* gsf_input_memory_new_from_iochannel (GIOChannel *channel, GError **error); channel : a GIOChannel. error : a GError Returns :a new GsfInputMemory or NULL. <anchor id="GsfOutputMemory-struct"/>GsfOutputMemory GsfOutputMemorytypedef struct _GsfOutputMemory GsfOutputMemory; <anchor id="gsf-output-memory-get-bytes"/>gsf_output_memory_get_bytes () gsf_output_memory_get_bytesconst guint8* gsf_output_memory_get_bytes (GsfOutputMemory *mem); mem : the output device. Returns : The data that has been written to mem, or null <anchor id="gsf-output-memory-get-type"/>gsf_output_memory_get_type () gsf_output_memory_get_typeGType gsf_output_memory_get_type (void); Returns : <anchor id="gsf-output-memory-new"/>gsf_output_memory_new () gsf_output_memory_newGsfOutput* gsf_output_memory_new (void); Returns :a new file or NULL. <anchor id="GsfSharedMemory-struct"/>GsfSharedMemory GsfSharedMemorytypedef struct _GsfSharedMemory GsfSharedMemory; <anchor id="gsf-shared-memory-new"/>gsf_shared_memory_new () gsf_shared_memory_newGsfSharedMemory* gsf_shared_memory_new (void *buf, gsf_off_t size, gboolean needs_free); buf : size : needs_free : Returns : <anchor id="gsf-shared-memory-mmapped-new"/>gsf_shared_memory_mmapped_new () gsf_shared_memory_mmapped_newGsfSharedMemory* gsf_shared_memory_mmapped_new (void *buf, gsf_off_t size); buf : size : Returns :