diff options
author | csharptest <roger@csharptest.net> | 2011-06-03 12:58:14 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-03 12:58:14 -0500 |
commit | ffafdaa0f9a96d17d456c844a3e554512a5c121d (patch) | |
tree | da8bb40d40228429fa4b846bc7ef29c06e717e82 /src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs | |
parent | cc8d2aaa3a0b6bed6677fd488bc7deecd90f5604 (diff) | |
download | protobuf-ffafdaa0f9a96d17d456c844a3e554512a5c121d.tar.gz protobuf-ffafdaa0f9a96d17d456c844a3e554512a5c121d.tar.bz2 protobuf-ffafdaa0f9a96d17d456c844a3e554512a5c121d.zip |
Fully converted over to ICodedOutputStream for all WriteTo derivations
Diffstat (limited to 'src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs')
-rw-r--r-- | src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs index b1849431..4d94af25 100644 --- a/src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs +++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs @@ -117,13 +117,13 @@ namespace Google.ProtocolBuffers.TestProtos { }
}
- public override void WriteTo(pb::CodedOutputStream output) {
+ public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
if (HasOptionalMessage) {
output.WriteMessage(1, "optional_message", OptionalMessage);
}
if (repeatedMessage_.Count > 0) {
- output.WriteMessageArray(2, "repeated_message", repeatedMessage_);
+ output.WriteArray(pbd::FieldType.Message, 2, "repeated_message", repeatedMessage_);
}
UnknownFields.WriteTo(output);
}
|