Safe Haskell | None |
---|---|
Language | Haskell98 |
- class Protocol a where
- getTransport :: Transport t => a t -> t
- writeMessageBegin :: Transport t => a t -> (Text, MessageType, Int32) -> IO ()
- writeMessageEnd :: Transport t => a t -> IO ()
- readMessageBegin :: Transport t => a t -> IO (Text, MessageType, Int32)
- readMessageEnd :: Transport t => a t -> IO ()
- serializeVal :: Transport t => a t -> ThriftVal -> ByteString
- deserializeVal :: Transport t => a t -> ThriftType -> ByteString -> ThriftVal
- writeVal :: Transport t => a t -> ThriftVal -> IO ()
- readVal :: Transport t => a t -> ThriftType -> IO ThriftVal
- data ProtocolExn = ProtocolExn ProtocolExnType String
- data ProtocolExnType
- getTypeOf :: ThriftVal -> ThriftType
- runParser :: (Protocol p, Transport t, Show a) => p t -> Parser a -> IO a
- versionMask :: Int32
- version1 :: Int32
- bsToDouble :: ByteString -> Double
Documentation
getTransport :: Transport t => a t -> t Source
writeMessageBegin :: Transport t => a t -> (Text, MessageType, Int32) -> IO () Source
writeMessageEnd :: Transport t => a t -> IO () Source
readMessageBegin :: Transport t => a t -> IO (Text, MessageType, Int32) Source
readMessageEnd :: Transport t => a t -> IO () Source
serializeVal :: Transport t => a t -> ThriftVal -> ByteString Source
deserializeVal :: Transport t => a t -> ThriftType -> ByteString -> ThriftVal Source
writeVal :: Transport t => a t -> ThriftVal -> IO () Source
readVal :: Transport t => a t -> ThriftType -> IO ThriftVal Source
data ProtocolExn Source
data ProtocolExnType Source
getTypeOf :: ThriftVal -> ThriftType Source
bsToDouble :: ByteString -> Double Source
Converts a ByteString to a Floating point number The ByteString is assumed to be encoded in network order (Big Endian) therefore the behavior of this function varies based on whether the local machine is big endian or little endian.