Peragro-AT
 All Classes Namespaces Functions Pages
Namespaces | Functions
damn_at.serialization Namespace Reference

Namespaces

 client
 
 server
 

Functions

def SerializeThriftMsg
 
def DeserializeThriftMsg
 

Detailed Description

Serialization helpers

Function Documentation

def damn_at.serialization.DeserializeThriftMsg (   msg,
  data,
  protocol_type = TBinaryProtocol.TBinaryProtocol 
)
Deserialize a thrift message using the given protocol.

The default protocol is binary.

Args:
    msg: the Thrift object to serialize.
    data: the data to read from.
    protocol_type: the Thrift protocol class to use.

Returns:
    Message object passed in (post-parsing).

Here is the caller graph for this function:

def damn_at.serialization.SerializeThriftMsg (   msg,
  protocol_type = TBinaryProtocol.TBinaryProtocol 
)
Serialize a thrift message using the given protocol.

The default protocol is binary.

Args:
    msg: the Thrift object to serialize.
    protocol_type: the Thrift protocol class to use.

Returns:
    A string of the serialized object.

Here is the call graph for this function: