gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.SimpleIOStream

Contents

Description

GSimpleIOStream creates a IOStream from an arbitrary InputStream and OutputStream. This allows any pair of input and output streams to be used with IOStream methods.

This is useful when you obtained a InputStream and a OutputStream by other means, for instance creating them with platform specific methods as unixInputStreamNew or g_win32_input_stream_new(), and you want to take advantage of the methods provided by IOStream.

Synopsis

Exported types

Methods

new

simpleIOStreamNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsInputStream a, IsOutputStream b) 
=> a

inputStream: a InputStream.

-> b

outputStream: a OutputStream.

-> m SimpleIOStream

Returns: a new SimpleIOStream instance.

Creates a new SimpleIOStream wrapping inputStream and outputStream. See also IOStream.

Since: 2.44

Properties

inputStream

outputStream