From 60fd773d300cd0390ba08812590690ab2d28c837 Mon Sep 17 00:00:00 2001 From: csharptest Date: Fri, 9 Sep 2011 12:18:16 -0500 Subject: Completed work and testing for manually reading/writing start/end message --- src/ProtocolBuffers/ICodedInputStream.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/ProtocolBuffers/ICodedInputStream.cs') diff --git a/src/ProtocolBuffers/ICodedInputStream.cs b/src/ProtocolBuffers/ICodedInputStream.cs index 1d9d26e3..a3c0f30b 100644 --- a/src/ProtocolBuffers/ICodedInputStream.cs +++ b/src/ProtocolBuffers/ICodedInputStream.cs @@ -45,6 +45,24 @@ namespace Google.ProtocolBuffers { public interface ICodedInputStream { + /// + /// Reads any message initialization data expected from the input stream + /// + /// + /// This is primarily used by text formats and unnecessary for protobuffers' own + /// binary format. The API for MessageStart/End was added for consistent handling + /// of output streams regardless of the actual writer implementation. + /// + void ReadMessageStart(); + /// + /// Reads any message finalization data expected from the input stream + /// + /// + /// This is primarily used by text formats and unnecessary for protobuffers' own + /// binary format. The API for MessageStart/End was added for consistent handling + /// of output streams regardless of the actual writer implementation. + /// + void ReadMessageEnd(); /// /// Attempt to read a field tag, returning false if we have reached the end /// of the input data. -- cgit v1.2.3