1.48 <GInputStream>

Class: <GInputStream>

It derives from <GObject>.

<GInputStream> is a base class for implementing streaming input.

It has functions to read from a stream (input-stream:read!), to close a stream (input-stream:close?) and to skip some content (input-stream:skip).

To copy the content of an input stream to an output stream without manually handling the reads and writes, use output-stream:splice.

See the documentation for <GIOStream> for details of thread safety of streaming APIs.

All of these functions have async variants too.

Fields

parent-instance

Procedures

Method: input-stream:clear-pending self
Method: clear-pending self

Clears the pending flag on self.

self

Passed: a <GInputStream>.

input stream

Method: input-stream:close-async self io-priority [cancellable] [callback]
Method: close-async self io-priority [cancellable] [callback]

Requests an asynchronous closes of the stream, releasing resources related to it. When the operation is finished callback will be called. You can then call input-stream:close-finish? to get the result of the operation.

For behaviour details see input-stream:close?.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.

self

Passed: a <GInputStream>.

A <GInputStream>.

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional cancellable object

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: input-stream:close-finish? self result ⇒ %return
Method: close-finish? self result ⇒ %return

Finishes closing a stream asynchronously, started from input-stream:close-async.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a boolean.

#t if the stream was closed successfully.

Method: input-stream:close? self [cancellable] ⇒ %return
Method: close? self [cancellable] ⇒ %return

Closes the stream, releasing resources related to it.

Once the stream is closed, all other operations will return closed. Closing a stream multiple times will not return an error.

Streams will be automatically closed when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.

Some streams might keep the backing store of the stream (e.g. a file descriptor) open after the stream is closed. See the documentation for the individual stream for details.

On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still return closed for all operations. Still, it is important to check and report the error to the user.

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 returned. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn’t block to e.g. check errors.

self

Passed: a <GInputStream>.

A <GInputStream>.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t on success, #f on failure

Method: input-stream:has-pending? self ⇒ %return
Method: has-pending? self ⇒ %return

Checks if an input stream has pending actions.

self

Passed: a <GInputStream>.

input stream.

%return

Returned: a boolean.

#t if self has pending actions.

Method: input-stream:is-closed? self ⇒ %return
Method: is-closed? self ⇒ %return

Checks if an input stream is closed.

self

Passed: a <GInputStream>.

input stream.

%return

Returned: a boolean.

#t if the stream is closed.

Method: input-stream:read! self buffer [cancellable] ⇒ %return buffer
Method: read! self buffer [cancellable] ⇒ %return buffer

Tries to read count bytes from the stream into the buffer starting at buffer. Will block during this read.

If count is zero returns zero and does nothing. A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the number of bytes read into the buffer is returned. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file. Zero is returned on end of file (or if count is zero), but never otherwise.

The returned buffer is not a nul-terminated string, it can contain nul bytes at any position, and this function doesn’t nul-terminate the buffer.

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 returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.

On error -1 is returned and error is set accordingly.

self

Passed: a <GInputStream>.

a <GInputStream>.

buffer

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer. It is filled in, and returned: a bytevector.

a buffer to read data into (which should be at least count bytes long).

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a 64-bit integer.

Number of bytes read, or -1 on error, or 0 on end of file.

count

Not returned: it is the length of buffer.

the number of bytes that will be read from the stream

Method: input-stream:read-all! self buffer [cancellable] ⇒ %return buffer bytes-read
Method: read-all! self buffer [cancellable] ⇒ %return buffer bytes-read

Tries to read count bytes from the stream into the buffer starting at buffer. Will block during this read.

This function is similar to input-stream:read!, except it tries to read as many bytes as requested, only stopping on an error or end of stream.

On a successful read of count bytes, or if we reached the end of the stream, #t is returned, and bytes-read is set to the number of bytes read into buffer.

If there is an error during the operation #f is returned and error is set to indicate the error status.

As a special exception to the normal conventions for functions that use <GError>, if this function returns #f (and sets error) then bytes-read will be set to the number of bytes that were successfully read before the error was encountered. This functionality is only available from C. If you need it from another language then you must write your own loop around input-stream:read!.

self

Passed: a <GInputStream>.

a <GInputStream>.

buffer

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer. It is filled in, and returned: a bytevector.

a buffer to read data into (which should be at least count bytes long).

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t on success, #f if there was an error

bytes-read

Returned: an unsigned 64-bit integer.

location to store the number of bytes that was read from the stream

count

Not returned: it is the length of buffer.

the number of bytes that will be read from the stream

Method: input-stream:read-all-async! self buffer io-priority [cancellable] [callback] ⇒ buffer
Method: read-all-async! self buffer io-priority [cancellable] [callback] ⇒ buffer

Request an asynchronous read of count bytes from the stream into the buffer starting at buffer.

This is the asynchronous equivalent of InputStream.read_all.

Call InputStream.read_all_finish to collect the result.

Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

self

Passed: a <GInputStream>.

A <GInputStream>

buffer

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer. It is filled in, and returned: a bytevector.

a buffer to read data into (which should be at least count bytes long)

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

count

Not returned: it is the length of buffer.

the number of bytes that will be read from the stream

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: input-stream:read-all-finish self result ⇒ %return bytes-read
Method: read-all-finish self result ⇒ %return bytes-read

Finishes an asynchronous stream read operation started with InputStream.read_all_async.

As a special exception to the normal conventions for functions that use <GError>, if this function returns #f (and sets error) then bytes-read will be set to the number of bytes that were successfully read before the error was encountered. This functionality is only available from C. If you need it from another language then you must write your own loop around input-stream:read-async!.

self

Passed: a <GInputStream>.

a <GInputStream>

result

Passed: a <GAsyncResult>.

a <GAsyncResult>

%return

Returned: a boolean.

#t on success, #f if there was an error

bytes-read

Returned: an unsigned 64-bit integer.

location to store the number of bytes that was read from the stream

Method: input-stream:read-async! self buffer io-priority [cancellable] [callback] ⇒ buffer
Method: read-async! self buffer io-priority [cancellable] [callback] ⇒ buffer

Request an asynchronous read of count bytes from the stream into the buffer starting at buffer. When the operation is finished callback will be called. You can then call input-stream:read-finish to get the result of the operation.

During an async request no other sync and async calls are allowed on self, and will result in pending errors.

A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the number of bytes read into the buffer will be passed to the callback. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file, but generally we try to read as many bytes as requested. Zero is returned on end of file (or if count is zero), but never otherwise.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.

self

Passed: a <GInputStream>.

A <GInputStream>.

buffer

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer. It is filled in, and returned: a bytevector.

a buffer to read data into (which should be at least count bytes long).

io-priority

Passed: a 32-bit integer.

the I/O priority of the request.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

count

Not returned: it is the length of buffer.

the number of bytes that will be read from the stream

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: input-stream:read-bytes self count [cancellable] ⇒ %return
Method: read-bytes self count [cancellable] ⇒ %return

Like input-stream:read!, this tries to read count bytes from the stream in a blocking fashion. However, rather than reading into a user-supplied buffer, this will create a new <GBytes> containing the data that was read. This may be easier to use from language bindings.

If count is zero, returns a zero-length <GBytes> and does nothing. A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, a new <GBytes> is returned. It is not an error if the size of this object is not the same as the requested size, as it can happen e.g. near the end of a file. A zero-length <GBytes> is returned on end of file (or if count is zero), but never otherwise.

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 returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.

On error #f is returned and error is set accordingly.

self

Passed: a <GInputStream>.

a <GInputStream>.

count

Passed: an unsigned 64-bit integer.

maximum number of bytes that will be read from the stream. Common values include 4096 and 8192.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a <GBytes>.

a new <GBytes>, or #f on error

Method: input-stream:read-bytes-async self count io-priority [cancellable] [callback]
Method: read-bytes-async self count io-priority [cancellable] [callback]

Request an asynchronous read of count bytes from the stream into a new <GBytes>. When the operation is finished callback will be called. You can then call input-stream:read-bytes-finish to get the result of the operation.

During an async request no other sync and async calls are allowed on self, and will result in pending errors.

A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the new <GBytes> will be passed to the callback. It is not an error if this is smaller than the requested size, as it can happen e.g. near the end of a file, but generally we try to read as many bytes as requested. Zero is returned on end of file (or if count is zero), but never otherwise.

Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

self

Passed: a <GInputStream>.

A <GInputStream>.

count

Passed: an unsigned 64-bit integer.

the number of bytes that will be read from the stream

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: input-stream:read-bytes-finish self result ⇒ %return
Method: read-bytes-finish self result ⇒ %return

Finishes an asynchronous stream read-into-<GBytes> operation.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a <GBytes>.

the newly-allocated <GBytes>, or #f on error

Method: input-stream:read-finish self result ⇒ %return
Method: read-finish self result ⇒ %return

Finishes an asynchronous stream read operation.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a 64-bit integer.

number of bytes read in, or -1 on error, or 0 on end of file.

Method: input-stream:set-pending? self ⇒ %return
Method: set-pending? self ⇒ %return

Sets self to have actions pending. If the pending flag is already set or self is closed, it will return #f and set error.

self

Passed: a <GInputStream>.

input stream

%return

Returned: a boolean.

#t if pending was previously unset and is now set.

Method: input-stream:skip self count [cancellable] ⇒ %return
Method: skip self count [cancellable] ⇒ %return

Tries to skip count bytes from the stream. Will block during the operation.

This is identical to input-stream:read!, from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.

This function is optional for inherited classes, as the default implementation emulates it using read.

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 returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.

self

Passed: a <GInputStream>.

a <GInputStream>.

count

Passed: an unsigned 64-bit integer.

the number of bytes that will be skipped from the stream

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a 64-bit integer.

Number of bytes skipped, or -1 on error

Method: input-stream:skip-async self count io-priority [cancellable] [callback]
Method: skip-async self count io-priority [cancellable] [callback]

Request an asynchronous skip of count bytes from the stream. When the operation is finished callback will be called. You can then call input-stream:skip-finish to get the result of the operation.

During an async request no other sync and async calls are allowed, and will result in pending errors.

A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the number of bytes skipped will be passed to the callback. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file, but generally we try to skip as many bytes as requested. Zero is returned on end of file (or if count is zero), but never otherwise.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one, you must override all.

self

Passed: a <GInputStream>.

A <GInputStream>.

count

Passed: an unsigned 64-bit integer.

the number of bytes that will be skipped from the stream

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Method: input-stream:skip-finish self result ⇒ %return
Method: skip-finish self result ⇒ %return

Finishes a stream skip operation.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a 64-bit integer.

the size of the bytes skipped, or -1 on error.

Virtual methods

Virtual method: input-stream:do-close-async implementor self io-priority [cancellable] [callback]

Requests an asynchronous closes of the stream, releasing resources related to it. When the operation is finished callback will be called. You can then call input-stream:close-finish? to get the result of the operation.

For behaviour details see input-stream:close?.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.

To override it in a new class, give register-type #:vfuncs `((close-async . ,procedure)). The procedure is called as (procedure self io-priority cancellable callback user-data).

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

A <GInputStream>.

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional cancellable object

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Virtual method: input-stream:do-close-finish implementor self result ⇒ %return

Finishes closing a stream asynchronously, started from input-stream:close-async.

To override it in a new class, give register-type #:vfuncs `((close-finish . ,procedure)). The procedure is called as (procedure self result) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a boolean.

#t if the stream was closed successfully.

Virtual method: input-stream:do-close-fn implementor self [cancellable] ⇒ %return

To override it in a new class, give register-type #:vfuncs `((close-fn . ,procedure)). The procedure is called as (procedure self cancellable) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

cancellable

Passed, or left out: a <GCancellable>, or #f.

%return

Returned: a boolean.

Virtual method: input-stream:do-read-async implementor self buffer io-priority [cancellable] [callback] ⇒ buffer

Request an asynchronous read of count bytes from the stream into the buffer starting at buffer. When the operation is finished callback will be called. You can then call input-stream:read-finish to get the result of the operation.

During an async request no other sync and async calls are allowed on self, and will result in pending errors.

A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the number of bytes read into the buffer will be passed to the callback. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file, but generally we try to read as many bytes as requested. Zero is returned on end of file (or if count is zero), but never otherwise.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.

To override it in a new class, give register-type #:vfuncs `((read-async . ,procedure)). The procedure is called as (procedure self buffer io-priority cancellable callback user-data).

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

A <GInputStream>.

buffer

Passed: a bytevector, or a list or vector, each an unsigned 8-bit integer, or #f. It is filled in, and returned: a bytevector, or #f.

a buffer to read data into (which should be at least count bytes long).

io-priority

Passed: a 32-bit integer.

the I/O priority of the request.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

count

Not returned: it is the length of buffer.

the number of bytes that will be read from the stream

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Virtual method: input-stream:do-read-finish implementor self result ⇒ %return

Finishes an asynchronous stream read operation.

To override it in a new class, give register-type #:vfuncs `((read-finish . ,procedure)). The procedure is called as (procedure self result) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a 64-bit integer.

number of bytes read in, or -1 on error, or 0 on end of file.

Virtual method: input-stream:do-read-fn implementor self buffer count [cancellable] ⇒ %return

To override it in a new class, give register-type #:vfuncs `((read-fn . ,procedure)). The procedure is called as (procedure self buffer count cancellable) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

buffer

Passed: a foreign pointer, or a bytevector, or #f.

count

Passed: an unsigned 64-bit integer.

cancellable

Passed, or left out: a <GCancellable>, or #f.

%return

Returned: a 64-bit integer.

Virtual method: input-stream:do-skip implementor self count [cancellable] ⇒ %return

Tries to skip count bytes from the stream. Will block during the operation.

This is identical to input-stream:read!, from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.

This function is optional for inherited classes, as the default implementation emulates it using read.

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 returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.

To override it in a new class, give register-type #:vfuncs `((skip . ,procedure)). The procedure is called as (procedure self count cancellable) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

a <GInputStream>.

count

Passed: an unsigned 64-bit integer.

the number of bytes that will be skipped from the stream

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a 64-bit integer.

Number of bytes skipped, or -1 on error

Virtual method: input-stream:do-skip-async implementor self count io-priority [cancellable] [callback]

Request an asynchronous skip of count bytes from the stream. When the operation is finished callback will be called. You can then call input-stream:skip-finish to get the result of the operation.

During an async request no other sync and async calls are allowed, and will result in pending errors.

A value of count larger than G_MAXSSIZE will cause a invalid-argument error.

On success, the number of bytes skipped will be passed to the callback. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file, but generally we try to skip as many bytes as requested. Zero is returned on end of file (or if count is zero), but never otherwise.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

The asynchronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one, you must override all.

To override it in a new class, give register-type #:vfuncs `((skip-async . ,procedure)). The procedure is called as (procedure self count io-priority cancellable callback user-data).

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

A <GInputStream>.

count

Passed: an unsigned 64-bit integer.

the number of bytes that will be skipped from the stream

io-priority

Passed: a 32-bit integer.

the I/O priority of the request

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

callback

Passed, or left out: a procedure, or #f.

a GAsyncReadyCallback to call when the request is satisfied

See GAsyncReadyCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

the data to pass to callback function

Virtual method: input-stream:do-skip-finish implementor self result ⇒ %return

Finishes a stream skip operation.

To override it in a new class, give register-type #:vfuncs `((skip-finish . ,procedure)). The procedure is called as (procedure self result) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GInputStream>, or a class that derives from it, or its GType number.

self

Passed: a <GInputStream>.

a <GInputStream>.

result

Passed: a <GAsyncResult>.

a <GAsyncResult>.

%return

Returned: a 64-bit integer.

the size of the bytes skipped, or -1 on error.