Safe Haskell | None |
---|---|
Language | Haskell2010 |
- fromEnum' :: (Enum a, Num c) => a -> c
- toEnum' :: (Enum c, Integral a) => a -> c
- alignment :: DBusType -> Int
- data Endian
- type DBusPut a = RWS Endian Builder Int a
- endian :: (a -> Builder) -> (a -> Builder) -> a -> DBusPut ()
- putSize :: MonadState Int m => Int -> m ()
- alignPut :: Int -> DBusPut ()
- sizeOf :: Int -> Int -> DBusPut a -> DBusPut Int
- bytes :: (a -> Builder) -> (a -> Builder) -> Int -> a -> DBusPut ()
- putWord8 :: Word8 -> DBusPut ()
- putWord16 :: Word16 -> DBusPut ()
- putWord32 :: Word32 -> DBusPut ()
- putWord64 :: Word64 -> DBusPut ()
- putInt8 :: Int8 -> DBusPut ()
- putInt16 :: Int16 -> DBusPut ()
- putInt32 :: Int32 -> DBusPut ()
- putInt64 :: Int64 -> DBusPut ()
- putDouble :: Double -> DBusPut ()
- putByteString :: ByteString -> DBusPut ()
- putText :: Text -> DBusPut ()
- putObjectPath :: ObjectPath -> DBusPut ()
- putSignatures :: [DBusType] -> RWST Endian Builder Int Identity ()
- putDBV :: SingI DBusType t => DBusValue t -> DBusPut ()
- putDBV' :: Sing t -> DBusValue t -> DBusPut ()
- putStruct :: Sing a -> DBusStruct a -> DBusPut ()
- runDBusPut :: Num s => r -> RWS r b s a -> b
- putValues :: [SomeDBusValue] -> DBusPut ()
- type DBusGet a = ReaderT Endian Get a
- getEndian :: Get a -> Get a -> DBusGet a
- alignGet :: Int -> DBusGet ()
- getting :: Get a -> Get a -> Int -> DBusGet a
- getWord8 :: DBusGet Word8
- getWord16 :: DBusGet Word16
- getWord32 :: DBusGet Word32
- getWord64 :: DBusGet Word64
- getInt16 :: DBusGet Int16
- getInt32 :: DBusGet Int32
- getInt64 :: DBusGet Int64
- getDouble :: DBusGet Double
- getText :: DBusGet Text
- getBool :: DBusGet Bool
- getSignatures :: ReaderT * Endian Get [DBusType]
- getByteString :: MonadTrans t => Int -> t Get ByteString
- getDBV :: SingI t => DBusGet (DBusValue t)
- getDBVByType :: DBusType -> DBusGet SomeDBusValue
- getDBV' :: Sing t -> DBusGet (DBusValue t)
- getStruct :: Sing ts -> DBusGet (DBusStruct ts)
- getMany :: Int64 -> Sing t -> DBusGet [DBusValue t]
- getManyPairs :: Int64 -> Sing kt -> Sing vt -> DBusGet [(DBusValue kt, DBusValue vt)]
- sinkGet :: MonadThrow m => Get b -> ConduitM ByteString o m b
Documentation
putByteString :: ByteString -> DBusPut () Source #
putObjectPath :: ObjectPath -> DBusPut () Source #
runDBusPut :: Num s => r -> RWS r b s a -> b Source #
putValues :: [SomeDBusValue] -> DBusPut () Source #
getByteString :: MonadTrans t => Int -> t Get ByteString Source #
sinkGet :: MonadThrow m => Get b -> ConduitM ByteString o m b Source #
Run a Binary Getter as a Sink