aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/ICodedOutputStream.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-06-03 12:15:42 -0500
committerrogerk <devnull@localhost>2011-06-03 12:15:42 -0500
commitcc8d2aaa3a0b6bed6677fd488bc7deecd90f5604 (patch)
treebc4fd19fe69eee19610407f1019b4ee264b9e568 /src/ProtocolBuffers/ICodedOutputStream.cs
parent90922db77aef8bd7f21e7a87a75d86885da8dbbc (diff)
downloadprotobuf-cc8d2aaa3a0b6bed6677fd488bc7deecd90f5604.tar.gz
protobuf-cc8d2aaa3a0b6bed6677fd488bc7deecd90f5604.tar.bz2
protobuf-cc8d2aaa3a0b6bed6677fd488bc7deecd90f5604.zip
Extracted initial ICodedOutputStream interface
Diffstat (limited to 'src/ProtocolBuffers/ICodedOutputStream.cs')
-rw-r--r--src/ProtocolBuffers/ICodedOutputStream.cs84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/ICodedOutputStream.cs b/src/ProtocolBuffers/ICodedOutputStream.cs
new file mode 100644
index 00000000..fb290eb6
--- /dev/null
+++ b/src/ProtocolBuffers/ICodedOutputStream.cs
@@ -0,0 +1,84 @@
+using System;
+using Google.ProtocolBuffers.Descriptors;
+
+namespace Google.ProtocolBuffers
+{
+ public interface ICodedOutputStream
+ {
+ /// <summary>
+ /// Writes a double field value, including tag, to the stream.
+ /// </summary>
+ void WriteDouble(int fieldNumber, string fieldName, double value);
+
+ /// <summary>
+ /// Writes a float field value, including tag, to the stream.
+ /// </summary>
+ void WriteFloat(int fieldNumber, string fieldName, float value);
+
+ /// <summary>
+ /// Writes a uint64 field value, including tag, to the stream.
+ /// </summary>
+ [CLSCompliant(false)]
+ void WriteUInt64(int fieldNumber, string fieldName, ulong value);
+
+ /// <summary>
+ /// Writes an int64 field value, including tag, to the stream.
+ /// </summary>
+ void WriteInt64(int fieldNumber, string fieldName, long value);
+
+ /// <summary>
+ /// Writes an int32 field value, including tag, to the stream.
+ /// </summary>
+ void WriteInt32(int fieldNumber, string fieldName, int value);
+
+ /// <summary>
+ /// Writes a fixed64 field value, including tag, to the stream.
+ /// </summary>
+ [CLSCompliant(false)]
+ void WriteFixed64(int fieldNumber, string fieldName, ulong value);
+
+ /// <summary>
+ /// Writes a fixed32 field value, including tag, to the stream.
+ /// </summary>
+ [CLSCompliant(false)]
+ void WriteFixed32(int fieldNumber, string fieldName, uint value);
+
+ /// <summary>
+ /// Writes a bool field value, including tag, to the stream.
+ /// </summary>
+ void WriteBool(int fieldNumber, string fieldName, bool value);
+
+ /// <summary>
+ /// Writes a string field value, including tag, to the stream.
+ /// </summary>
+ void WriteString(int fieldNumber, string fieldName, string value);
+
+ /// <summary>
+ /// Writes a group field value, including tag, to the stream.
+ /// </summary>
+ void WriteGroup(int fieldNumber, string fieldName, IMessageLite value);
+
+ [Obsolete]
+ void WriteUnknownGroup(int fieldNumber, string fieldName, IMessageLite value);
+
+ void WriteMessage(int fieldNumber, string fieldName, IMessageLite value);
+ void WriteBytes(int fieldNumber, string fieldName, ByteString value);
+
+ [CLSCompliant(false)]
+ void WriteUInt32(int fieldNumber, string fieldName, uint value);
+
+ void WriteEnum(int fieldNumber, string fieldName, int value, string textValue);
+ void WriteSFixed32(int fieldNumber, string fieldName, int value);
+ void WriteSFixed64(int fieldNumber, string fieldName, long value);
+ void WriteSInt32(int fieldNumber, string fieldName, int value);
+ void WriteSInt64(int fieldNumber, string fieldName, long value);
+ void WriteMessageSetExtension(int fieldNumber, string fieldName, IMessageLite value);
+ void WriteMessageArray(int fieldNumber, string fieldName, System.Collections.IEnumerable list);
+ void WriteGroupArray(int fieldNumber, string fieldName, System.Collections.IEnumerable list);
+ void WriteArray(FieldType fieldType, int fieldNumber, string fieldName, System.Collections.IEnumerable list);
+ void WritePackedArray(FieldType fieldType, int fieldNumber, string fieldName, System.Collections.IEnumerable list);
+ void WritePackedArray(FieldType fieldType, int fieldNumber, string fieldName, int calculatedSize, System.Collections.IEnumerable list);
+ void WriteField(FieldType fieldType, int fieldNumber, string fieldName, object value);
+ void Flush();
+ }
+} \ No newline at end of file