[ https://issues.apache.org/jira/browse/THRIFT-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918653#action_12918653 ]
Bryan Duxbury commented on THRIFT-947: -------------------------------------- This is kind of interesting. One bit of reasoning you have in there could be improved: if the data ends with a }, then it cannot be compact protocol, since compact protocol will always end on a 0 byte. > Provide a helper method to determine the TProtocol used to serialize some > data. > ------------------------------------------------------------------------------- > > Key: THRIFT-947 > URL: https://issues.apache.org/jira/browse/THRIFT-947 > Project: Thrift > Issue Type: New Feature > Components: Java - Library > Reporter: Mathias Herberts > Priority: Minor > Attachments: THRIFT-947-1 > > > In order to deserialize thrift structures previously serialized, you > currently need to know the TProtocol used for serialization. > The proposed new feature offers a method which applies a heuristic to > determine the TProtocol used from the serialized data. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.