aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-06-03 14:51:06 -0500
committerrogerk <devnull@localhost>2011-06-03 14:51:06 -0500
commit9928441649bde7a5e3bb84808821f1a5bef0bba6 (patch)
tree9914eaa108d1a5817c8ccac79aa4694c0b86bebd /src/ProtocolBuffers
parent123e534914df3dbdcd918ec4f8d79c47a3bf85e5 (diff)
downloadprotobuf-9928441649bde7a5e3bb84808821f1a5bef0bba6.tar.gz
protobuf-9928441649bde7a5e3bb84808821f1a5bef0bba6.tar.bz2
protobuf-9928441649bde7a5e3bb84808821f1a5bef0bba6.zip
Canged CodedInputStream.ReadTag to use boolean result with out params to
support reading a field name rather than a field tag.
Diffstat (limited to 'src/ProtocolBuffers')
-rw-r--r--src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs8
-rw-r--r--src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs36
2 files changed, 22 insertions, 22 deletions
diff --git a/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs b/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
index ccb118dc..36040cbd 100644
--- a/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
+++ b/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
@@ -519,7 +519,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -1020,7 +1020,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -1245,7 +1245,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -1470,7 +1470,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
diff --git a/src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs b/src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
index a343587e..0dca0463 100644
--- a/src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
+++ b/src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
@@ -405,7 +405,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -819,7 +819,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -1369,7 +1369,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -1737,7 +1737,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -2402,7 +2402,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -2870,7 +2870,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -3225,7 +3225,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -3564,7 +3564,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -3938,7 +3938,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -4414,7 +4414,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -4873,7 +4873,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -5266,7 +5266,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -5620,7 +5620,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -5877,7 +5877,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -6134,7 +6134,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -6391,7 +6391,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -6688,7 +6688,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {
@@ -7015,7 +7015,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
while (input.ReadTag(out tag, out field_name)) {
switch (tag) {
case 0: {
- throw InvalidProtocolBufferException.InvalidTag();
+ throw pb::InvalidProtocolBufferException.InvalidTag();
}
default: {
if (pb::WireFormat.IsEndGroupTag(tag)) {