Output
Stream
Class
constructor
parent_
class
name
close_
async
close_
finish
close_
fn
flush
flush_
async
flush_
finish
splice
splice_
async
splice_
finish
write_
async
write_
finish
write_
fn
writev_
async
writev_
finish
writev_
fn
GJS API Reference
Gio-2.0
Gio
OutputStreamClass
Class OutputStreamClass
Hierarchy
OutputStreamClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
close_
async
close_
finish
close_
fn
flush
flush_
async
flush_
finish
splice
splice_
async
splice_
finish
write_
async
write_
finish
write_
fn
writev_
async
writev_
finish
writev_
fn
Constructors
constructor
new
Output
Stream
Class
(
)
:
Gio
.
OutputStreamClass
Returns
Gio
.
OutputStreamClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
close_
async
close_
async
(
stream
:
Gio
.
OutputStream
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
stream:
Gio
.
OutputStream
io_priority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
close_
finish
close_
finish
(
stream
:
Gio
.
OutputStream
, result
:
AsyncResult
)
:
boolean
Parameters
stream:
Gio
.
OutputStream
result:
AsyncResult
Returns
boolean
close_
fn
close_
fn
(
stream
:
Gio
.
OutputStream
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
stream:
Gio
.
OutputStream
cancellable:
Gio
.
Cancellable
Returns
boolean
flush
flush
(
stream
:
Gio
.
OutputStream
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
stream:
Gio
.
OutputStream
cancellable:
Gio
.
Cancellable
Returns
boolean
flush_
async
flush_
async
(
stream
:
Gio
.
OutputStream
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
stream:
Gio
.
OutputStream
io_priority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
flush_
finish
flush_
finish
(
stream
:
Gio
.
OutputStream
, result
:
AsyncResult
)
:
boolean
Parameters
stream:
Gio
.
OutputStream
result:
AsyncResult
Returns
boolean
splice
splice
(
stream
:
Gio
.
OutputStream
, source
:
Gio
.
InputStream
, flags
:
OutputStreamSpliceFlags
, cancellable
:
Gio
.
Cancellable
)
:
number
Parameters
stream:
Gio
.
OutputStream
source:
Gio
.
InputStream
flags:
OutputStreamSpliceFlags
cancellable:
Gio
.
Cancellable
Returns
number
splice_
async
splice_
async
(
stream
:
Gio
.
OutputStream
, source
:
Gio
.
InputStream
, flags
:
OutputStreamSpliceFlags
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
stream:
Gio
.
OutputStream
source:
Gio
.
InputStream
flags:
OutputStreamSpliceFlags
io_priority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
splice_
finish
splice_
finish
(
stream
:
Gio
.
OutputStream
, result
:
AsyncResult
)
:
number
Parameters
stream:
Gio
.
OutputStream
result:
AsyncResult
Returns
number
write_
async
write_
async
(
stream
:
Gio
.
OutputStream
, buffer
:
Uint8Array
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
stream:
Gio
.
OutputStream
buffer:
Uint8Array
io_priority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
write_
finish
write_
finish
(
stream
:
Gio
.
OutputStream
, result
:
AsyncResult
)
:
number
Parameters
stream:
Gio
.
OutputStream
result:
AsyncResult
Returns
number
write_
fn
write_
fn
(
stream
:
Gio
.
OutputStream
, buffer
:
Uint8Array
, cancellable
:
Gio
.
Cancellable
)
:
number
Parameters
stream:
Gio
.
OutputStream
buffer:
Uint8Array
cancellable:
Gio
.
Cancellable
Returns
number
writev_
async
writev_
async
(
stream
:
Gio
.
OutputStream
, vectors
:
OutputVector
[]
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
stream:
Gio
.
OutputStream
vectors:
OutputVector
[]
io_priority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
writev_
finish
writev_
finish
(
stream
:
Gio
.
OutputStream
, result
:
AsyncResult
)
:
[
boolean
,
number
]
Parameters
stream:
Gio
.
OutputStream
result:
AsyncResult
Returns
[
boolean
,
number
]
writev_
fn
writev_
fn
(
stream
:
Gio
.
OutputStream
, vectors
:
OutputVector
[]
, cancellable
:
Gio
.
Cancellable
)
:
[
boolean
,
number
]
Parameters
stream:
Gio
.
OutputStream
vectors:
OutputVector
[]
cancellable:
Gio
.
Cancellable
Returns
[
boolean
,
number
]
Output
Stream
Class
constructor
parent_
class
name
close_
async
close_
finish
close_
fn
flush
flush_
async
flush_
finish
splice
splice_
async
splice_
finish
write_
async
write_
finish
write_
fn
writev_
async
writev_
finish
writev_
fn
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8wLkdpby5PdXRwdXRTdHJlYW1DbGFzcy5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiR2lvXzJfMC5HaW8uT3V0cHV0U3RyZWFtQ2xhc3MuaHRtbCNwYXJlbnRfY2xhc3MiLCJuYW1lIjoicGFyZW50X2NsYXNzIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWl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