Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Functions | Variables
vfs_buffer.c File Reference
#include <glib.h>
#include <string.h>
#include "vfs.h"
#include "vfs_buffer.h"

Go to the source code of this file.

Functions

static VFSFilebuffer_vfs_fopen_impl (const gchar *path, const gchar *mode)
static gint buffer_vfs_fclose_impl (VFSFile *file)
static gint64 buffer_vfs_fread_impl (void *i_ptr, gint64 size, gint64 nmemb, VFSFile *file)
static gint64 buffer_vfs_fwrite_impl (const void *i_ptr, gint64 size, gint64 nmemb, VFSFile *file)
static gint buffer_vfs_getc_impl (VFSFile *stream)
static gint buffer_vfs_ungetc_impl (gint c, VFSFile *stream)
static gint buffer_vfs_fseek_impl (VFSFile *file, gint64 offset, gint whence)
static void buffer_vfs_rewind_impl (VFSFile *file)
static gint64 buffer_vfs_ftell_impl (VFSFile *file)
static gboolean buffer_vfs_feof_impl (VFSFile *file)
static gint buffer_vfs_truncate_impl (VFSFile *file, gint64 size)
static gint64 buffer_vfs_fsize_impl (VFSFile *file)
VFSFilevfs_buffer_new (gpointer data, gsize size)
 Creates a VFS buffer for reading/writing to a memory segment.
VFSFilevfs_buffer_new_from_string (gchar *str)
 Creates a VFS buffer for reading/writing to a string.

Variables

static VFSConstructor buffer_const

Function Documentation

static gint buffer_vfs_fclose_impl ( VFSFile file) [static]

Definition at line 34 of file vfs_buffer.c.

static gboolean buffer_vfs_feof_impl ( VFSFile file) [static]

Definition at line 165 of file vfs_buffer.c.

static VFSFile* buffer_vfs_fopen_impl ( const gchar *  path,
const gchar *  mode 
) [static]

Definition at line 27 of file vfs_buffer.c.

static gint64 buffer_vfs_fread_impl ( void *  i_ptr,
gint64  size,
gint64  nmemb,
VFSFile file 
) [static]

Definition at line 43 of file vfs_buffer.c.

static gint buffer_vfs_fseek_impl ( VFSFile file,
gint64  offset,
gint  whence 
) [static]

Definition at line 110 of file vfs_buffer.c.

static gint64 buffer_vfs_fsize_impl ( VFSFile file) [static]

Definition at line 184 of file vfs_buffer.c.

static gint64 buffer_vfs_ftell_impl ( VFSFile file) [static]

Definition at line 152 of file vfs_buffer.c.

static gint64 buffer_vfs_fwrite_impl ( const void *  i_ptr,
gint64  size,
gint64  nmemb,
VFSFile file 
) [static]

Definition at line 67 of file vfs_buffer.c.

static gint buffer_vfs_getc_impl ( VFSFile stream) [static]

Definition at line 92 of file vfs_buffer.c.

static void buffer_vfs_rewind_impl ( VFSFile file) [static]

Definition at line 139 of file vfs_buffer.c.

static gint buffer_vfs_truncate_impl ( VFSFile file,
gint64  size 
) [static]

Definition at line 178 of file vfs_buffer.c.

static gint buffer_vfs_ungetc_impl ( gint  c,
VFSFile stream 
) [static]

Definition at line 104 of file vfs_buffer.c.

VFSFile* vfs_buffer_new ( gpointer  data,
gsize  size 
)

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

Parameters:
dataPointer to data to use.
sizeSize of data to use.
Returns:
A VFSFile handle for the memory segment's stream representation.

Definition at line 213 of file vfs_buffer.c.

Referenced by vfs_buffer_new_from_string(), and vfs_buffered_file_new_from_uri().

VFSFile* vfs_buffer_new_from_string ( gchar *  str)

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

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

Definition at line 244 of file vfs_buffer.c.


Variable Documentation