private int ReadWhitespace(byte[] buffer, int offset, int offsetMax) { byte[] charType = XmlUTF8TextReader.s_charType; int wsOffset = offset; while (offset < offsetMax && (charType[buffer[offset]] & CharType.SpecialWhitespace) != 0) offset++; return offset - wsOffset; }