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/AddressBook | |
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/AddressBook')
-rw-r--r-- | src/AddressBook/AddressBookProtos.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/AddressBook/AddressBookProtos.cs b/src/AddressBook/AddressBookProtos.cs index 8b4ac021..2bb45d0a 100644 --- a/src/AddressBook/AddressBookProtos.cs +++ b/src/AddressBook/AddressBookProtos.cs @@ -152,7 +152,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook { }
}
- public override void WriteTo(pb::CodedOutputStream output) {
+ public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
if (HasNumber) {
output.WriteString(1, "number", Number);
@@ -428,7 +428,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook { }
}
- public override void WriteTo(pb::CodedOutputStream output) {
+ public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
if (HasName) {
output.WriteString(1, "name", Name);
@@ -440,7 +440,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook { output.WriteString(3, "email", Email);
}
if (phone_.Count > 0) {
- output.WriteMessageArray(4, "phone", phone_);
+ output.WriteArray(pbd::FieldType.Message, 4, "phone", phone_);
}
UnknownFields.WriteTo(output);
}
@@ -772,10 +772,10 @@ namespace Google.ProtocolBuffers.Examples.AddressBook { }
}
- public override void WriteTo(pb::CodedOutputStream output) {
+ public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
if (person_.Count > 0) {
- output.WriteMessageArray(1, "person", person_);
+ output.WriteArray(pbd::FieldType.Message, 1, "person", person_);
}
UnknownFields.WriteTo(output);
}
|