TProtocol is a protocol stack that ensures the safe transfer of data between communicating systems. The ReadMessageEnd method of the TProtocol class reads the end of a message and prepares the buffer for the next message.
Code example:
using System.IO; using Thrift.Protocol;
class MyClass { public void ReadMessageEndExample(TProtocol protocol, MemoryStream buffer) { protocol.ReadMessageEnd(); buffer.Position = 0; } }
In this example, the ReadMessageEnd method is used to read the end of a message in the given protocol, and the buffer is reset to its initial position.
Package library: Apache Thrift.
C# (CSharp) TProtocol.ReadMessageEnd - 30 examples found. These are the top rated real world C# (CSharp) examples of TProtocol.ReadMessageEnd extracted from open source projects. You can rate examples to help us improve the quality of examples.