sndfile2k  1.2.0
Data Fields
SF_VIRTUAL_IO Struct Reference

Defines virtual file I/O context. More...

#include <sndfile2k/sndfile2k.h>

Data Fields

sf_vio_get_filelen get_filelen
 Pointer to a used defined function that returns file size.
 
sf_vio_seek seek
 Pointer to a user defined seek function.
 
sf_vio_read read
 Pointer to a user defined read function.
 
sf_vio_write write
 Pointer to a user defined write function.
 
sf_vio_tell tell
 Pointer to a user defined function that returns file position.
 
sf_vio_flush flush
 Pointer to a user defined function that forces the writing of data to disk.
 
sf_vio_set_filelen set_filelen
 Pointer to a user defined function that truncates stream.
 
sf_vio_is_pipe is_pipe
 Pointer to a user defined function that indicates pipe mode.
 
sf_ref_callback ref
 Pointer to a user defined function that increases reference count.
 
sf_unref_callback unref
 Pointer to a user defined function that decreases reference count.
 

Detailed Description

Defines virtual file I/O context.

SF_VIRTUAL_IO contains pointers to user-defined functions used in Virtual I/O.

get_filelen, seek and tell fields must always be set; read field is required for read and read/write mode; write field should be set for write mode.


The documentation for this struct was generated from the following file: