Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Thrift.Protocol
- data CompactProtocol a = CompactProtocol a
- parseVarint :: (Bits a, Integral a, Ord a) => (a -> b) -> Parser b
- buildVarint :: (Bits a, Integral a) => a -> Builder
Documentation
module Thrift.Protocol
data CompactProtocol a Source #
the Compact Protocol implements the standard Thrift TCompactProcotol
which is similar to the TBinaryProtocol
, but takes less space on the wire.
Integral types are encoded using as varints.
CompactProtocol a | Constuct a |
Instances
Transport t => StatelessProtocol (CompactProtocol t) Source # | |
Defined in Thrift.Protocol.Compact serializeVal :: CompactProtocol t -> ThriftVal -> ByteString Source # deserializeVal :: CompactProtocol t -> ThriftType -> ByteString -> ThriftVal Source # | |
Transport t => Protocol (CompactProtocol t) Source # | |
Defined in Thrift.Protocol.Compact readByte :: CompactProtocol t -> IO ByteString Source # readVal :: CompactProtocol t -> ThriftType -> IO ThriftVal Source # readMessage :: CompactProtocol t -> ((Text, MessageType, Int32) -> IO b) -> IO b Source # writeVal :: CompactProtocol t -> ThriftVal -> IO () Source # writeMessage :: CompactProtocol t -> (Text, MessageType, Int32) -> IO () -> IO () Source # |