aboutsummaryrefslogtreecommitdiff
path: root/csharp/ProtocolBuffers/MessageStreamWriter.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2008-10-22 13:18:49 +0100
committerJon Skeet <skeet@pobox.com>2008-10-22 13:18:49 +0100
commitf0589506c96600dcd01319b9d1929d87505f3daa (patch)
tree945bc56e2e2da748271acc8e80deb7ca22aaaf54 /csharp/ProtocolBuffers/MessageStreamWriter.cs
parente60ce8bfafca616ed4fd430ae4f82360de165e80 (diff)
downloadprotobuf-f0589506c96600dcd01319b9d1929d87505f3daa.tar.gz
protobuf-f0589506c96600dcd01319b9d1929d87505f3daa.tar.bz2
protobuf-f0589506c96600dcd01319b9d1929d87505f3daa.zip
Wiping slate clean to start again with new layout.
Diffstat (limited to 'csharp/ProtocolBuffers/MessageStreamWriter.cs')
-rw-r--r--csharp/ProtocolBuffers/MessageStreamWriter.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/csharp/ProtocolBuffers/MessageStreamWriter.cs b/csharp/ProtocolBuffers/MessageStreamWriter.cs
deleted file mode 100644
index 9ff33b05..00000000
--- a/csharp/ProtocolBuffers/MessageStreamWriter.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.IO;
-
-namespace Google.ProtocolBuffers {
- /// <summary>
- /// Writes multiple messages to the same stream. Each message is written
- /// as if it were an element of a repeated field 1 in a larger protocol buffer.
- /// This class takes no ownership of the stream it is given; it never closes the
- /// stream.
- /// </summary>
- public sealed class MessageStreamWriter<T> where T : IMessage<T> {
-
- private readonly CodedOutputStream codedOutput;
-
- /// <summary>
- /// Creates an instance which writes to the given stream.
- /// </summary>
- /// <param name="output">Stream to write messages to.</param>
- public MessageStreamWriter(Stream output) {
- codedOutput = CodedOutputStream.CreateInstance(output);
- }
-
- public void Write(T message) {
- codedOutput.WriteMessage(1, message);
- }
-
- public void Flush() {
- codedOutput.Flush();
- }
- }
-}