aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/CodedInputStream.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2013-05-07 15:00:50 -0500
committerrogerk <devnull@localhost>2013-05-07 15:00:50 -0500
commitef7091c9eda6d4e02860c879d5b1cf7044fd144c (patch)
treec5ddadf872fdd564da25794c0f77f7653ac1b244 /src/ProtocolBuffers/CodedInputStream.cs
parent30f73e2e4a6eb2fad45b87bbf6db6e222a85e9ee (diff)
downloadprotobuf-ef7091c9eda6d4e02860c879d5b1cf7044fd144c.tar.gz
protobuf-ef7091c9eda6d4e02860c879d5b1cf7044fd144c.tar.bz2
protobuf-ef7091c9eda6d4e02860c879d5b1cf7044fd144c.zip
Issue #54: should retire all bytes in buffer (bufferSize)
Diffstat (limited to 'src/ProtocolBuffers/CodedInputStream.cs')
-rw-r--r--src/ProtocolBuffers/CodedInputStream.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ProtocolBuffers/CodedInputStream.cs b/src/ProtocolBuffers/CodedInputStream.cs
index ab18f9d7..3ee7d55f 100644
--- a/src/ProtocolBuffers/CodedInputStream.cs
+++ b/src/ProtocolBuffers/CodedInputStream.cs
@@ -1780,7 +1780,11 @@ namespace Google.ProtocolBuffers
{
// Skipping more bytes than are in the buffer. First skip what we have.
int pos = bufferSize - bufferPos;
- totalBytesRetired += pos;
+
+ // ROK 5/7/2013 Issue #54: should retire all bytes in buffer (bufferSize)
+ // totalBytesRetired += pos;
+ totalBytesRetired += bufferSize;
+
bufferPos = 0;
bufferSize = 0;