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/ICodedOutputStream.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/ICodedOutputStream.cs')
-rw-r--r-- | src/ProtocolBuffers/ICodedOutputStream.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/ICodedOutputStream.cs b/src/ProtocolBuffers/ICodedOutputStream.cs index 2c324792..a686fed1 100644 --- a/src/ProtocolBuffers/ICodedOutputStream.cs +++ b/src/ProtocolBuffers/ICodedOutputStream.cs @@ -52,6 +52,24 @@ namespace Google.ProtocolBuffers public interface ICodedOutputStream : IDisposable
{
/// <summary>
+ /// Writes any message initialization data needed to the output 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 WriteMessageStart();
+ /// <summary>
+ /// Writes any message finalization data needed to the output 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 WriteMessageEnd();
+ /// <summary>
/// Indicates that all temporary buffers be written to the final output.
/// </summary>
void Flush();
|