vfs_buffer

vfs_buffer

Synopsis




                    VFSBuffer;
VFSFile*            vfs_buffer_new                      (gpointer data,
                                                         gsize size);
VFSFile*            vfs_buffer_new_from_string          (gchar *str);

Description

Details

VFSBuffer

typedef struct {
	guchar *data;
	guchar *iter;
	guchar *end;
	gsize   size;
} VFSBuffer;

Private data for the VFS memorybuffer class.

guchar *data; The data inside the VFSBuffer.
guchar *iter; The current position of the VFS buffer iterator.
guchar *end; The end of the memory segment that the VFS buffer uses.
gsize size; The size of the memory segment.

vfs_buffer_new ()

VFSFile*            vfs_buffer_new                      (gpointer data,
                                                         gsize size);

Creates a VFS buffer for reading/writing to a memory segment.

data : Pointer to data to use.
size : Size of data to use.
Returns : A VFSFile handle for the memory segment's stream representation.

vfs_buffer_new_from_string ()

VFSFile*            vfs_buffer_new_from_string          (gchar *str);

Creates a VFS buffer for reading/writing to a string.

str : String to use.
Returns : A VFSFile handle for the memory segment's stream representation.