Removed UTF-32 buffer offset.

This commit is contained in:
Ferdinand Majerech 2014-07-29 23:25:22 +02:00
parent 33b2a7ef68
commit e5561285c3

View file

@ -57,7 +57,6 @@ final class Reader
char[] buffer8_ = null; char[] buffer8_ = null;
// Current position within buffer. Only data after this position can be read. // Current position within buffer. Only data after this position can be read.
uint bufferOffset_ = 0;
size_t bufferOffset8_ = 0; size_t bufferOffset8_ = 0;
// Index of the current character in the buffer. // Index of the current character in the buffer.
@ -332,7 +331,6 @@ private:
assert(bufferOffset8_ < buffer8_.length, assert(bufferOffset8_ < buffer8_.length,
"Attempted to decode past the end of a string"); "Attempted to decode past the end of a string");
const b = buffer8_[bufferOffset8_]; const b = buffer8_[bufferOffset8_];
++bufferOffset_;
++charIndex_; ++charIndex_;
++decodeCount_; ++decodeCount_;
if(b < 0x80) if(b < 0x80)