A few performance tweaks of the ICodedOutputStream interface/implementation
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
index 19d8989..b2154af 100644
--- a/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
+++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
@@ -72,7 +72,7 @@
public override void WriteTo(pb::ICodedOutputStream output) {
int size = SerializedSize;
- if (HasD) {
+ if (hasD) {
output.WriteInt32(1, "d", D);
}
}
@@ -84,7 +84,7 @@
if (size != -1) return size;
size = 0;
- if (HasD) {
+ if (hasD) {
size += pb::CodedOutputStream.ComputeInt32Size(1, D);
}
memoizedSerializedSize = size;
@@ -233,7 +233,7 @@
public bool HasD {
- get { return result.HasD; }
+ get { return result.hasD; }
}
public int D {
get { return result.D; }