Thrift-0.4.0: Thrift library package

Thrift.Protocol

Documentation

class Protocol a whereSource

Methods

getTransport :: Transport t => a t -> tSource

writeMessageBegin :: Transport t => a t -> (String, MessageType, Int) -> IO ()Source

writeMessageEnd :: Transport t => a t -> IO ()Source

writeStructBegin :: Transport t => a t -> String -> IO ()Source

writeStructEnd :: Transport t => a t -> IO ()Source

writeFieldBegin :: Transport t => a t -> (String, ThriftType, Int) -> IO ()Source

writeFieldEnd :: Transport t => a t -> IO ()Source

writeFieldStop :: Transport t => a t -> IO ()Source

writeMapBegin :: Transport t => a t -> (ThriftType, ThriftType, Int) -> IO ()Source

writeMapEnd :: Transport t => a t -> IO ()Source

writeListBegin :: Transport t => a t -> (ThriftType, Int) -> IO ()Source

writeListEnd :: Transport t => a t -> IO ()Source

writeSetBegin :: Transport t => a t -> (ThriftType, Int) -> IO ()Source

writeSetEnd :: Transport t => a t -> IO ()Source

writeBool :: Transport t => a t -> Bool -> IO ()Source

writeByte :: Transport t => a t -> Int -> IO ()Source

writeI16 :: Transport t => a t -> Int -> IO ()Source

writeI32 :: Transport t => a t -> Int -> IO ()Source

writeI64 :: Transport t => a t -> Int64 -> IO ()Source

writeDouble :: Transport t => a t -> Double -> IO ()Source

writeString :: Transport t => a t -> String -> IO ()Source

writeBinary :: Transport t => a t -> String -> IO ()Source

readMessageBegin :: Transport t => a t -> IO (String, MessageType, Int)Source

readMessageEnd :: Transport t => a t -> IO ()Source

readStructBegin :: Transport t => a t -> IO StringSource

readStructEnd :: Transport t => a t -> IO ()Source

readFieldBegin :: Transport t => a t -> IO (String, ThriftType, Int)Source

readFieldEnd :: Transport t => a t -> IO ()Source

readMapBegin :: Transport t => a t -> IO (ThriftType, ThriftType, Int)Source

readMapEnd :: Transport t => a t -> IO ()Source

readListBegin :: Transport t => a t -> IO (ThriftType, Int)Source

readListEnd :: Transport t => a t -> IO ()Source

readSetBegin :: Transport t => a t -> IO (ThriftType, Int)Source

readSetEnd :: Transport t => a t -> IO ()Source

readBool :: Transport t => a t -> IO BoolSource

readByte :: Transport t => a t -> IO IntSource

readI16 :: Transport t => a t -> IO IntSource

readI32 :: Transport t => a t -> IO IntSource

readI64 :: Transport t => a t -> IO Int64Source

readDouble :: Transport t => a t -> IO DoubleSource

readString :: Transport t => a t -> IO StringSource

readBinary :: Transport t => a t -> IO StringSource

skip :: (Protocol p, Transport t) => p t -> ThriftType -> IO ()Source