private bool ZeroEndingStream(int pos) { if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof) { _ps.charsUsed--; return true; } return false; }