| GSF Reference Manual |
|---|
struct GsfInputMemory; GsfInputMemory* gsf_input_memory_new (guint8 const *buf, gsf_off_t length, gboolean needs_free); GsfInputMemory* gsf_input_memory_new_clone (guint8 const *buf, gsf_off_t length); GsfInputMemory* gsf_input_mmap_new (char const *filename, GError **err);
GsfInputMemory* 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 |
GsfInputMemory* 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 |
GsfInputMemory* gsf_input_mmap_new (char const *filename, GError **err);
| filename : | The file on disk that you want to mmap |
| err : | A |
| Returns : | A new GsfInputMemory |
| <<< gsf-input-memory | gsf-input-stdio >>> |