Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Converter input stream implements InputStream
and allows
conversion of data of various types during reading.
As of GLib 2.34, ConverterInputStream
implements
PollableInputStream
.
Synopsis
- newtype ConverterInputStream = ConverterInputStream (ManagedPtr ConverterInputStream)
- class (GObject o, IsDescendantOf ConverterInputStream o) => IsConverterInputStream o
- toConverterInputStream :: (MonadIO m, IsConverterInputStream o) => o -> m ConverterInputStream
- converterInputStreamGetConverter :: (HasCallStack, MonadIO m, IsConverterInputStream a) => a -> m Converter
- converterInputStreamNew :: (HasCallStack, MonadIO m, IsInputStream a, IsConverter b) => a -> b -> m ConverterInputStream
- constructConverterInputStreamConverter :: (IsConverterInputStream o, MonadIO m, IsConverter a) => a -> m (GValueConstruct o)
- getConverterInputStreamConverter :: (MonadIO m, IsConverterInputStream o) => o -> m Converter
Exported types
newtype ConverterInputStream Source #
Memory-managed wrapper type.
Instances
Eq ConverterInputStream Source # | |
Defined in GI.Gio.Objects.ConverterInputStream (==) :: ConverterInputStream -> ConverterInputStream -> Bool # (/=) :: ConverterInputStream -> ConverterInputStream -> Bool # | |
GObject ConverterInputStream Source # | |
Defined in GI.Gio.Objects.ConverterInputStream | |
ManagedPtrNewtype ConverterInputStream Source # | |
TypedObject ConverterInputStream Source # | |
Defined in GI.Gio.Objects.ConverterInputStream | |
HasParentTypes ConverterInputStream Source # | |
Defined in GI.Gio.Objects.ConverterInputStream | |
IsGValue (Maybe ConverterInputStream) Source # | Convert |
Defined in GI.Gio.Objects.ConverterInputStream gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ConverterInputStream -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ConverterInputStream) # | |
type ParentTypes ConverterInputStream Source # | |
Defined in GI.Gio.Objects.ConverterInputStream |
class (GObject o, IsDescendantOf ConverterInputStream o) => IsConverterInputStream o Source #
Type class for types which can be safely cast to ConverterInputStream
, for instance with toConverterInputStream
.
Instances
(GObject o, IsDescendantOf ConverterInputStream o) => IsConverterInputStream o Source # | |
Defined in GI.Gio.Objects.ConverterInputStream |
toConverterInputStream :: (MonadIO m, IsConverterInputStream o) => o -> m ConverterInputStream Source #
Cast to ConverterInputStream
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, canPoll, clearPending, close, closeAsync, closeFinish, createSource, forceFloating, freezeNotify, getv, hasPending, isClosed, isFloating, isReadable, notify, notifyByPspec, read, readAll, readAllAsync, readAllFinish, readAsync, readBytes, readBytesAsync, readBytesFinish, readFinish, readNonblocking, ref, refSink, runDispose, skip, skipAsync, skipFinish, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBaseStream, getCloseBaseStream, getConverter, getData, getProperty, getQdata.
Setters
setCloseBaseStream, setData, setDataFull, setPending, setProperty.
getConverter
converterInputStreamGetConverter Source #
:: (HasCallStack, MonadIO m, IsConverterInputStream a) | |
=> a |
|
-> m Converter | Returns: the converter of the converter input stream |
Gets the Converter
that is used by converterStream
.
Since: 2.24
new
converterInputStreamNew Source #
:: (HasCallStack, MonadIO m, IsInputStream a, IsConverter b) | |
=> a |
|
-> b |
|
-> m ConverterInputStream | Returns: a new |
Creates a new converter input stream for the baseStream
.
Properties
converter
No description available in the introspection data.
constructConverterInputStreamConverter :: (IsConverterInputStream o, MonadIO m, IsConverter a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “converter
” property. This is rarely needed directly, but it is used by new
.
getConverterInputStreamConverter :: (MonadIO m, IsConverterInputStream o) => o -> m Converter Source #
Get the value of the “converter
” property.
When overloading is enabled, this is equivalent to
get
converterInputStream #converter