Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Data input stream implements InputStream
and includes functions for
reading structured data directly from a binary input stream.
- newtype DataInputStream = DataInputStream (ManagedPtr DataInputStream)
- class GObject o => IsDataInputStream o
- toDataInputStream :: IsDataInputStream o => o -> IO DataInputStream
- noDataInputStream :: Maybe DataInputStream
- data DataInputStreamGetByteOrderMethodInfo
- dataInputStreamGetByteOrder :: (HasCallStack, MonadIO m, IsDataInputStream a) => a -> m DataStreamByteOrder
- data DataInputStreamGetNewlineTypeMethodInfo
- dataInputStreamGetNewlineType :: (HasCallStack, MonadIO m, IsDataInputStream a) => a -> m DataStreamNewlineType
- dataInputStreamNew :: (HasCallStack, MonadIO m, IsInputStream a) => a -> m DataInputStream
- data DataInputStreamReadByteMethodInfo
- dataInputStreamReadByte :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Word8
- data DataInputStreamReadInt16MethodInfo
- dataInputStreamReadInt16 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int16
- data DataInputStreamReadInt32MethodInfo
- dataInputStreamReadInt32 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int32
- data DataInputStreamReadInt64MethodInfo
- dataInputStreamReadInt64 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Int64
- data DataInputStreamReadLineMethodInfo
- dataInputStreamReadLine :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m (Maybe ByteString, Word64)
- data DataInputStreamReadLineAsyncMethodInfo
- dataInputStreamReadLineAsync :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DataInputStreamReadLineFinishMethodInfo
- dataInputStreamReadLineFinish :: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) => a -> b -> m (Maybe ByteString, Word64)
- data DataInputStreamReadLineFinishUtf8MethodInfo
- dataInputStreamReadLineFinishUtf8 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) => a -> b -> m (Maybe Text, Word64)
- data DataInputStreamReadLineUtf8MethodInfo
- dataInputStreamReadLineUtf8 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m (Maybe Text, Word64)
- data DataInputStreamReadUint16MethodInfo
- dataInputStreamReadUint16 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Word16
- data DataInputStreamReadUint32MethodInfo
- dataInputStreamReadUint32 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Word32
- data DataInputStreamReadUint64MethodInfo
- dataInputStreamReadUint64 :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Maybe b -> m Word64
- data DataInputStreamReadUntilMethodInfo
- dataInputStreamReadUntil :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Text -> Maybe b -> m (Text, Word64)
- data DataInputStreamReadUntilAsyncMethodInfo
- dataInputStreamReadUntilAsync :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DataInputStreamReadUntilFinishMethodInfo
- dataInputStreamReadUntilFinish :: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) => a -> b -> m (Text, Word64)
- data DataInputStreamReadUptoMethodInfo
- dataInputStreamReadUpto :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Text -> Int64 -> Maybe b -> m (Text, Word64)
- data DataInputStreamReadUptoAsyncMethodInfo
- dataInputStreamReadUptoAsync :: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) => a -> Text -> Int64 -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DataInputStreamReadUptoFinishMethodInfo
- dataInputStreamReadUptoFinish :: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) => a -> b -> m (Text, Word64)
- data DataInputStreamSetByteOrderMethodInfo
- dataInputStreamSetByteOrder :: (HasCallStack, MonadIO m, IsDataInputStream a) => a -> DataStreamByteOrder -> m ()
- data DataInputStreamSetNewlineTypeMethodInfo
- dataInputStreamSetNewlineType :: (HasCallStack, MonadIO m, IsDataInputStream a) => a -> DataStreamNewlineType -> m ()
- data DataInputStreamByteOrderPropertyInfo
- constructDataInputStreamByteOrder :: IsDataInputStream o => DataStreamByteOrder -> IO (GValueConstruct o)
- dataInputStreamByteOrder :: AttrLabelProxy "byteOrder"
- getDataInputStreamByteOrder :: (MonadIO m, IsDataInputStream o) => o -> m DataStreamByteOrder
- setDataInputStreamByteOrder :: (MonadIO m, IsDataInputStream o) => o -> DataStreamByteOrder -> m ()
- data DataInputStreamNewlineTypePropertyInfo
- constructDataInputStreamNewlineType :: IsDataInputStream o => DataStreamNewlineType -> IO (GValueConstruct o)
- dataInputStreamNewlineType :: AttrLabelProxy "newlineType"
- getDataInputStreamNewlineType :: (MonadIO m, IsDataInputStream o) => o -> m DataStreamNewlineType
- setDataInputStreamNewlineType :: (MonadIO m, IsDataInputStream o) => o -> DataStreamNewlineType -> m ()
Exported types
newtype DataInputStream Source #
GObject DataInputStream Source # | |
IsObject DataInputStream Source # | |
IsInputStream DataInputStream Source # | |
IsFilterInputStream DataInputStream Source # | |
IsBufferedInputStream DataInputStream Source # | |
IsSeekable DataInputStream Source # | |
IsDataInputStream DataInputStream Source # | |
((~) * info (ResolveDataInputStreamMethod t DataInputStream), MethodInfo * info DataInputStream p) => IsLabel t (DataInputStream -> p) Source # | |
((~) * info (ResolveDataInputStreamMethod t DataInputStream), MethodInfo * info DataInputStream p) => IsLabelProxy t (DataInputStream -> p) Source # | |
HasAttributeList * DataInputStream Source # | |
type AttributeList DataInputStream Source # | |
type SignalList DataInputStream Source # | |
class GObject o => IsDataInputStream o Source #
toDataInputStream :: IsDataInputStream o => o -> IO DataInputStream Source #
Methods
getByteOrder
data DataInputStreamGetByteOrderMethodInfo Source #
((~) * signature (m DataStreamByteOrder), MonadIO m, IsDataInputStream a) => MethodInfo * DataInputStreamGetByteOrderMethodInfo a signature Source # | |
dataInputStreamGetByteOrder Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a) | |
=> a |
|
-> m DataStreamByteOrder | Returns: the |
Gets the byte order for the data input stream.
getNewlineType
data DataInputStreamGetNewlineTypeMethodInfo Source #
((~) * signature (m DataStreamNewlineType), MonadIO m, IsDataInputStream a) => MethodInfo * DataInputStreamGetNewlineTypeMethodInfo a signature Source # | |
dataInputStreamGetNewlineType Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a) | |
=> a |
|
-> m DataStreamNewlineType | Returns: |
Gets the current newline type for the stream
.
new
:: (HasCallStack, MonadIO m, IsInputStream a) | |
=> a |
|
-> m DataInputStream | Returns: a new |
Creates a new data input stream for the baseStream
.
readByte
data DataInputStreamReadByteMethodInfo Source #
((~) * signature (Maybe b -> m Word8), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadByteMethodInfo a signature Source # | |
dataInputStreamReadByte Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Word8 | Returns: an unsigned 8-bit/1-byte value read from the |
Reads an unsigned 8-bit/1-byte value from stream
.
readInt16
data DataInputStreamReadInt16MethodInfo Source #
((~) * signature (Maybe b -> m Int16), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadInt16MethodInfo a signature Source # | |
dataInputStreamReadInt16 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Int16 | Returns: a signed 16-bit/2-byte value read from |
Reads a 16-bit/2-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
and dataInputStreamSetByteOrder
.
readInt32
data DataInputStreamReadInt32MethodInfo Source #
((~) * signature (Maybe b -> m Int32), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadInt32MethodInfo a signature Source # | |
dataInputStreamReadInt32 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Int32 | Returns: a signed 32-bit/4-byte value read from the |
Reads a signed 32-bit/4-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
and dataInputStreamSetByteOrder
.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
readInt64
data DataInputStreamReadInt64MethodInfo Source #
((~) * signature (Maybe b -> m Int64), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadInt64MethodInfo a signature Source # | |
dataInputStreamReadInt64 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Int64 | Returns: a signed 64-bit/8-byte value read from |
Reads a 64-bit/8-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
and dataInputStreamSetByteOrder
.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
readLine
data DataInputStreamReadLineMethodInfo Source #
((~) * signature (Maybe b -> m (Maybe ByteString, Word64)), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadLineMethodInfo a signature Source # | |
dataInputStreamReadLine Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m (Maybe ByteString, Word64) | Returns:
a NUL terminated byte array with the line that was read in
(without the newlines). Set |
Reads a line from the data input stream. Note that no encoding checks or conversion is performed; the input is not guaranteed to be UTF-8, and may in fact have embedded NUL characters.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
readLineAsync
data DataInputStreamReadLineAsyncMethodInfo Source #
((~) * signature (Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadLineAsyncMethodInfo a signature Source # | |
dataInputStreamReadLineAsync Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
The asynchronous version of dataInputStreamReadLine
. It is
an error to have two outstanding calls to this function.
When the operation is finished, callback
will be called. You
can then call dataInputStreamReadLineFinish
to get
the result of the operation.
Since: 2.20
readLineFinish
data DataInputStreamReadLineFinishMethodInfo Source #
((~) * signature (b -> m (Maybe ByteString, Word64)), MonadIO m, IsDataInputStream a, IsAsyncResult b) => MethodInfo * DataInputStreamReadLineFinishMethodInfo a signature Source # | |
dataInputStreamReadLineFinish Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe ByteString, Word64) | Returns:
a NUL-terminated byte array with the line that was read in
(without the newlines). Set |
Finish an asynchronous call started by
dataInputStreamReadLineAsync
. Note the warning about
string encoding in dataInputStreamReadLine
applies here as
well.
Since: 2.20
readLineFinishUtf8
data DataInputStreamReadLineFinishUtf8MethodInfo Source #
((~) * signature (b -> m (Maybe Text, Word64)), MonadIO m, IsDataInputStream a, IsAsyncResult b) => MethodInfo * DataInputStreamReadLineFinishUtf8MethodInfo a signature Source # | |
dataInputStreamReadLineFinishUtf8 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Maybe Text, Word64) | Returns: a string with the line that
was read in (without the newlines). Set |
Finish an asynchronous call started by
dataInputStreamReadLineAsync
.
Since: 2.30
readLineUtf8
data DataInputStreamReadLineUtf8MethodInfo Source #
((~) * signature (Maybe b -> m (Maybe Text, Word64)), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadLineUtf8MethodInfo a signature Source # | |
dataInputStreamReadLineUtf8 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m (Maybe Text, Word64) | Returns: a NUL terminated UTF-8 string
with the line that was read in (without the newlines). Set
|
Reads a UTF-8 encoded line from the data input stream.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
Since: 2.30
readUint16
data DataInputStreamReadUint16MethodInfo Source #
((~) * signature (Maybe b -> m Word16), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUint16MethodInfo a signature Source # | |
dataInputStreamReadUint16 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Word16 | Returns: an unsigned 16-bit/2-byte value read from the |
Reads an unsigned 16-bit/2-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
and dataInputStreamSetByteOrder
.
readUint32
data DataInputStreamReadUint32MethodInfo Source #
((~) * signature (Maybe b -> m Word32), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUint32MethodInfo a signature Source # | |
dataInputStreamReadUint32 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Word32 | Returns: an unsigned 32-bit/4-byte value read from the |
Reads an unsigned 32-bit/4-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
and dataInputStreamSetByteOrder
.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
readUint64
data DataInputStreamReadUint64MethodInfo Source #
((~) * signature (Maybe b -> m Word64), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUint64MethodInfo a signature Source # | |
dataInputStreamReadUint64 Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Word64 | Returns: an unsigned 64-bit/8-byte read from |
Reads an unsigned 64-bit/8-byte value from stream
.
In order to get the correct byte order for this read operation,
see dataInputStreamGetByteOrder
.
If cancellable
is not Nothing
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error IOErrorEnumCancelled
will be returned.
readUntil
data DataInputStreamReadUntilMethodInfo Source #
((~) * signature (Text -> Maybe b -> m (Text, Word64)), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUntilMethodInfo a signature Source # | |
dataInputStreamReadUntil Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m (Text, Word64) | Returns: a string with the data that was read
before encountering any of the stop characters. Set |
Reads a string from the data input stream, up to the first occurrence of any of the stop characters.
Note that, in contrast to dataInputStreamReadUntilAsync
,
this function consumes the stop character that it finds.
Don't use this function in new code. Its functionality is
inconsistent with dataInputStreamReadUntilAsync
. Both
functions will be marked as deprecated in a future release. Use
dataInputStreamReadUpto
instead, but note that that function
does not consume the stop character.
readUntilAsync
data DataInputStreamReadUntilAsyncMethodInfo Source #
((~) * signature (Text -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUntilAsyncMethodInfo a signature Source # | |
dataInputStreamReadUntilAsync Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
The asynchronous version of dataInputStreamReadUntil
.
It is an error to have two outstanding calls to this function.
Note that, in contrast to dataInputStreamReadUntil
,
this function does not consume the stop character that it finds. You
must read it for yourself.
When the operation is finished, callback
will be called. You
can then call dataInputStreamReadUntilFinish
to get
the result of the operation.
Don't use this function in new code. Its functionality is
inconsistent with dataInputStreamReadUntil
. Both functions
will be marked as deprecated in a future release. Use
dataInputStreamReadUptoAsync
instead.
Since: 2.20
readUntilFinish
data DataInputStreamReadUntilFinishMethodInfo Source #
((~) * signature (b -> m (Text, Word64)), MonadIO m, IsDataInputStream a, IsAsyncResult b) => MethodInfo * DataInputStreamReadUntilFinishMethodInfo a signature Source # | |
dataInputStreamReadUntilFinish Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Text, Word64) | Returns: a string with the data that was read
before encountering any of the stop characters. Set |
Finish an asynchronous call started by
dataInputStreamReadUntilAsync
.
Since: 2.20
readUpto
data DataInputStreamReadUptoMethodInfo Source #
((~) * signature (Text -> Int64 -> Maybe b -> m (Text, Word64)), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUptoMethodInfo a signature Source # | |
dataInputStreamReadUpto Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int64 |
|
-> Maybe b |
|
-> m (Text, Word64) | Returns: a string with the data that was read
before encountering any of the stop characters. Set |
Reads a string from the data input stream, up to the first occurrence of any of the stop characters.
In contrast to dataInputStreamReadUntil
, this function
does not consume the stop character. You have to use
dataInputStreamReadByte
to get it before calling
dataInputStreamReadUpto
again.
Note that stopChars
may contain '\0' if stopCharsLen
is
specified.
Since: 2.26
readUptoAsync
data DataInputStreamReadUptoAsyncMethodInfo Source #
((~) * signature (Text -> Int64 -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsDataInputStream a, IsCancellable b) => MethodInfo * DataInputStreamReadUptoAsyncMethodInfo a signature Source # | |
dataInputStreamReadUptoAsync Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Int64 |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
The asynchronous version of dataInputStreamReadUpto
.
It is an error to have two outstanding calls to this function.
In contrast to dataInputStreamReadUntil
, this function
does not consume the stop character. You have to use
dataInputStreamReadByte
to get it before calling
dataInputStreamReadUpto
again.
Note that stopChars
may contain '\0' if stopCharsLen
is
specified.
When the operation is finished, callback
will be called. You
can then call dataInputStreamReadUptoFinish
to get
the result of the operation.
Since: 2.26
readUptoFinish
data DataInputStreamReadUptoFinishMethodInfo Source #
((~) * signature (b -> m (Text, Word64)), MonadIO m, IsDataInputStream a, IsAsyncResult b) => MethodInfo * DataInputStreamReadUptoFinishMethodInfo a signature Source # | |
dataInputStreamReadUptoFinish Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m (Text, Word64) | Returns: a string with the data that was read
before encountering any of the stop characters. Set |
Finish an asynchronous call started by
dataInputStreamReadUptoAsync
.
Note that this function does not consume the stop character. You
have to use dataInputStreamReadByte
to get it before calling
dataInputStreamReadUptoAsync
again.
Since: 2.24
setByteOrder
data DataInputStreamSetByteOrderMethodInfo Source #
((~) * signature (DataStreamByteOrder -> m ()), MonadIO m, IsDataInputStream a) => MethodInfo * DataInputStreamSetByteOrderMethodInfo a signature Source # | |
dataInputStreamSetByteOrder Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a) | |
=> a |
|
-> DataStreamByteOrder |
|
-> m () |
This function sets the byte order for the given stream
. All subsequent
reads from the stream
will be read in the given order
.
setNewlineType
data DataInputStreamSetNewlineTypeMethodInfo Source #
((~) * signature (DataStreamNewlineType -> m ()), MonadIO m, IsDataInputStream a) => MethodInfo * DataInputStreamSetNewlineTypeMethodInfo a signature Source # | |
dataInputStreamSetNewlineType Source #
:: (HasCallStack, MonadIO m, IsDataInputStream a) | |
=> a |
|
-> DataStreamNewlineType |
|
-> m () |
Sets the newline type for the stream
.
Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read chunk ends in "CR" we must read an additional byte to know if this is "CR" or "CR LF", and this might block if there is no more data available.
Properties
byteOrder
data DataInputStreamByteOrderPropertyInfo Source #
constructDataInputStreamByteOrder :: IsDataInputStream o => DataStreamByteOrder -> IO (GValueConstruct o) Source #
dataInputStreamByteOrder :: AttrLabelProxy "byteOrder" Source #
getDataInputStreamByteOrder :: (MonadIO m, IsDataInputStream o) => o -> m DataStreamByteOrder Source #
setDataInputStreamByteOrder :: (MonadIO m, IsDataInputStream o) => o -> DataStreamByteOrder -> m () Source #
newlineType
data DataInputStreamNewlineTypePropertyInfo Source #
constructDataInputStreamNewlineType :: IsDataInputStream o => DataStreamNewlineType -> IO (GValueConstruct o) Source #
dataInputStreamNewlineType :: AttrLabelProxy "newlineType" Source #
getDataInputStreamNewlineType :: (MonadIO m, IsDataInputStream o) => o -> m DataStreamNewlineType Source #
setDataInputStreamNewlineType :: (MonadIO m, IsDataInputStream o) => o -> DataStreamNewlineType -> m () Source #