gsf-input-memory

Name

gsf-input-memory -- 

Synopsis



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);

Description

Details

struct GsfInputMemory

struct GsfInputMemory;


gsf_input_memory_new ()

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


gsf_input_memory_new_clone ()

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


gsf_input_mmap_new ()

GsfInputMemory* 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