| [Insert name here] Reference Manual | ||||
|---|---|---|---|---|
VFSBuffer;
VFSFile* vfs_buffer_new (gpointer data,
gsize size);
VFSFile* vfs_buffer_new_from_string (gchar *str);
typedef struct {
guchar *data;
guchar *iter;
guchar *end;
gsize size;
} VFSBuffer;
Private data for the VFS memorybuffer class.
data; |
The data inside the VFSBuffer. |
iter; |
The current position of the VFS buffer iterator. |
end; |
The end of the memory segment that the VFS buffer uses. |
size; |
The size of the memory segment. |
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. |
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. |