// Decrease the recursion depth by 1 myProtocol.DecrementRecursionDepth();
// Chunked decoding with maximum recursion depth reduced by 2 myProtocol.DecrementRecursionDepth(); myProtocol.DecrementRecursionDepth(); while (/* there are still chunks to decode */) { myObject.MergeFrom(myProtocol); }In this code, the maximum recursion depth is reduced by 2 before decoding a chunked object. The MergeFrom method decodes and merges each chunk of the object into the myObject variable until there are no more chunks left. Package Library: Apache Thrift - C# Library.