Top | ![]() |
![]() |
![]() |
![]() |
MirageFileStream is a basic unit of file access abstraction used in libMirage. It implements MirageStream interface to perform I/O operations.
A MirageFileStream is found at the bottom of all filter chains used by libMirage's image parsers and writers.
gboolean mirage_file_stream_open (MirageFileStream *self
,const gchar *filename
,gboolean writable
,GError **error
);
Opens the stream on the file pointed to by filename
. If writable
is FALSE
, the stream is opened in read-only mode; if writable
is
TRUE
, the stream is opened in read-write mode.
self |
||
filename |
name of file on which the stream is to be opened. |
[in] |
writable |
a boolean indicating whether stream should be opened for read/write access. |
[in] |
error |
location to store error, or |
[out][allow-none] |
struct MirageFileStream;
All the fields in the MirageFileStream structure are private to the MirageFileStream implementation and should never be accessed directly.