diff options
author | csharptest <roger@csharptest.net> | 2011-09-09 12:18:16 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-09-09 12:18:16 -0500 |
commit | 60fd773d300cd0390ba08812590690ab2d28c837 (patch) | |
tree | 292994e6c5602566ed50d9911522f2e5e80515b1 /src/ProtocolBuffers/ICodedInputStream.cs | |
parent | 819b7154d162f3ef4f187f19b020f999c02fcf03 (diff) | |
download | protobuf-60fd773d300cd0390ba08812590690ab2d28c837.tar.gz protobuf-60fd773d300cd0390ba08812590690ab2d28c837.tar.bz2 protobuf-60fd773d300cd0390ba08812590690ab2d28c837.zip |
Completed work and testing for manually reading/writing start/end message
Diffstat (limited to 'src/ProtocolBuffers/ICodedInputStream.cs')
-rw-r--r-- | src/ProtocolBuffers/ICodedInputStream.cs | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -46,6 +46,24 @@ namespace Google.ProtocolBuffers public interface ICodedInputStream
{
/// <summary>
+ /// Reads any message initialization data expected from the input stream
+ /// </summary>
+ /// <remarks>
+ /// 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.
+ /// </remarks>
+ void ReadMessageStart();
+ /// <summary>
+ /// Reads any message finalization data expected from the input stream
+ /// </summary>
+ /// <remarks>
+ /// 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.
+ /// </remarks>
+ void ReadMessageEnd();
+ /// <summary>
/// Attempt to read a field tag, returning false if we have reached the end
/// of the input data.
/// </summary>
|