It derives from <GInputStream>.
<GFileInputStream> provides input streams
that take their content from a file.
<GFileInputStream> implements
<GSeekable>, which allows the input stream to
jump to arbitrary positions in the file, provided the filesystem of the
file allows it. To find the position of a file input stream, use
seekable:tell. To find out if a file input
stream supports seeking, use seekable:do-can-seek. To position a file input stream, use
seekable:do-seek.
parent-instanceQueries a file input stream the given attributes. This function
blocks while querying the stream. For the asynchronous (non-blocking)
version of this function, see file-input-stream:query-info-async. While the
stream is blocked, the stream will set the pending flag internally, and
any other operations on the stream will fail with
pending.
Passed: a <GFileInputStream>.
Passed: a string.
a file attribute query string.
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object, #f to
ignore.
Returned: a <GFileInfo>.
a <GFileInfo>, or #f on error.
Queries the stream information asynchronously. When the operation is
finished callback will be called. You can then call
file-input-stream:query-info-finish to get the
result of the operation.
For the synchronous version of this function, see
file-input-stream:query-info.
If cancellable is not #f, then the operation can be
cancelled by triggering the cancellable object from another thread. If
the operation was cancelled, the error
cancelled will be set
Passed: a <GFileInputStream>.
Passed: a string.
a file attribute query string.
Passed: a 32-bit integer.
the I/O priority of the request
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object, #f to
ignore.
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when the
request is satisfied
See GAsyncReadyCallback for how it is
called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finishes an asynchronous info query operation.
Passed: a <GFileInputStream>.
Passed: a <GAsyncResult>.
Returned: a <GFileInfo>.
To override it in a new class, give register-type #:vfuncs
`((can-seek . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Returned: a boolean.
Queries a file input stream the given attributes. This function
blocks while querying the stream. For the asynchronous (non-blocking)
version of this function, see file-input-stream:query-info-async. While the
stream is blocked, the stream will set the pending flag internally, and
any other operations on the stream will fail with
pending.
To override it in a new class, give register-type #:vfuncs
`((query-info . ,procedure)). The procedure is called as
(procedure self attributes cancellable) ⇒ %return.
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Passed: a string.
a file attribute query string.
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object, #f to
ignore.
Returned: a <GFileInfo>.
a <GFileInfo>, or #f on error.
Queries the stream information asynchronously. When the operation is
finished callback will be called. You can then call
file-input-stream:query-info-finish to get the
result of the operation.
For the synchronous version of this function, see
file-input-stream:query-info.
If cancellable is not #f, then the operation can be
cancelled by triggering the cancellable object from another thread. If
the operation was cancelled, the error
cancelled will be set
To override it in a new class, give register-type #:vfuncs
`((query-info-async . ,procedure)). The procedure is called as
(procedure self attributes io-priority cancellable callback
user-data).
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Passed: a string.
a file attribute query string.
Passed: a 32-bit integer.
the I/O priority of the request
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object, #f to
ignore.
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when the
request is satisfied
See GAsyncReadyCallback for how it is
called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finishes an asynchronous info query operation.
To override it in a new class, give register-type #:vfuncs
`((query-info-finish . ,procedure)). The procedure is called as
(procedure self result) ⇒ %return.
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Passed: a <GAsyncResult>.
Returned: a <GFileInfo>.
To override it in a new class, give register-type #:vfuncs
`((seek . ,procedure)). The procedure is called as (procedure
self offset type cancellable) ⇒ %return.
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Passed: a 64-bit integer.
Passed: a <%GSeekType>, or one of its
symbols.
Passed, or left out: a <GCancellable>, or
#f.
Returned: a boolean.
To override it in a new class, give register-type #:vfuncs
`((tell . ,procedure)). The procedure is called as (procedure
self) ⇒ %return.
Passed: the class whose implementation to call:
<GFileInputStream>, or a class that
derives from it, or its GType number.
Passed: a <GFileInputStream>.
Returned: a 64-bit integer.