![]() |
![]() |
![]() |
[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.
|
The data inside the VFSBuffer. |
|
The current position of the VFS buffer iterator. |
|
The end of the memory segment that the VFS buffer uses. |
|
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.
|
Pointer to data to use. |
|
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.
|
String to use. |
Returns : |
A VFSFile handle for the memory segment's stream representation. |