private bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2) { switch (type) { case StringHandleType.UTF8: return(bufferReader.Equals2(offset, length, bufferReader2, offset2, length2)); default: return(GetString() == bufferReader.GetString(offset2, length2)); } }
public bool Equals2(int offset1, int length1, XmlBufferReader bufferReader2, int offset2, int length2) { if (length1 != length2) { return(false); } byte[] numArray1 = buffer; byte[] numArray2 = bufferReader2.buffer; for (int index = 0; index < length1; ++index) { if (numArray1[offset1 + index] != numArray2[offset2 + index]) { return(false); } } return(true); }
public XmlClosedNode(XmlBufferReader bufferReader) : base(XmlNodeType.None, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.None, ReadState.Closed, null, 0) { }
public XmlEndOfFileNode(XmlBufferReader bufferReader) : base(XmlNodeType.None, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.None, ReadState.EndOfFile, null, 0) { }
public XmlCommentNode(XmlBufferReader bufferReader) : base(XmlNodeType.Comment, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.HasValue, ReadState.Interactive, null, 0) { }
public XmlDeclarationNode(XmlBufferReader bufferReader) : base(XmlNodeType.XmlDeclaration, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.CanGetAttribute, ReadState.Interactive, null, 0) { }
public XmlCDataNode(XmlBufferReader bufferReader) : base(XmlNodeType.CDATA, new StringHandle(bufferReader), new ValueHandle(bufferReader), (XmlNodeFlags)36, ReadState.Interactive, null, 0) { }
public XmlWhitespaceTextNode(XmlBufferReader bufferReader) : base(XmlNodeType.Whitespace, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.HasValue, ReadState.Interactive, null, 0) { }
public XmlComplexTextNode(XmlBufferReader bufferReader) : base(XmlNodeType.Text, new StringHandle(bufferReader), new ValueHandle(bufferReader), (XmlNodeFlags)36, ReadState.Interactive, null, 0) { }
public XmlAttributeNode(XmlBufferReader bufferReader) : this(new StringHandle(bufferReader), new ValueHandle(bufferReader)) { }
public XmlElementNode(XmlBufferReader bufferReader) : this(new StringHandle(bufferReader), new ValueHandle(bufferReader)) { }
public ValueHandle(XmlBufferReader bufferReader) { this.bufferReader = bufferReader; this.type = ValueHandleType.Empty; }
public StringHandle(XmlBufferReader bufferReader) { this.bufferReader = bufferReader; SetValue(0, 0); }