gi-gio-2.0.11: 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

data SimpleIOStreamInputStreamPropertyInfo Source #

Instances

AttrInfo SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrOrigin SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrLabel SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrGetType SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrBaseTypeConstraint SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrSetTypeConstraint SimpleIOStreamInputStreamPropertyInfo Source # 
type AttrAllowedOps SimpleIOStreamInputStreamPropertyInfo Source # 

outputStream

data SimpleIOStreamOutputStreamPropertyInfo Source #

Instances

AttrInfo SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrOrigin SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrLabel SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrGetType SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrBaseTypeConstraint SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrSetTypeConstraint SimpleIOStreamOutputStreamPropertyInfo Source # 
type AttrAllowedOps SimpleIOStreamOutputStreamPropertyInfo Source #