예제 #1
0
        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));
            }
        }
예제 #2
0
 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);
 }
예제 #3
0
 public XmlClosedNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.None, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.None, ReadState.Closed, null, 0)
 {
 }
예제 #4
0
 public XmlEndOfFileNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.None, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.None, ReadState.EndOfFile, null, 0)
 {
 }
예제 #5
0
 public XmlCommentNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Comment, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.HasValue, ReadState.Interactive, null, 0)
 {
 }
예제 #6
0
 public XmlDeclarationNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.XmlDeclaration, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.CanGetAttribute, ReadState.Interactive, null, 0)
 {
 }
예제 #7
0
 public XmlCDataNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.CDATA, new StringHandle(bufferReader), new ValueHandle(bufferReader), (XmlNodeFlags)36, ReadState.Interactive, null, 0)
 {
 }
예제 #8
0
 public XmlWhitespaceTextNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Whitespace, new StringHandle(bufferReader), new ValueHandle(bufferReader), XmlNodeFlags.HasValue, ReadState.Interactive, null, 0)
 {
 }
예제 #9
0
 public XmlComplexTextNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Text, new StringHandle(bufferReader), new ValueHandle(bufferReader), (XmlNodeFlags)36, ReadState.Interactive, null, 0)
 {
 }
예제 #10
0
 public XmlAttributeNode(XmlBufferReader bufferReader)
     : this(new StringHandle(bufferReader), new ValueHandle(bufferReader))
 {
 }
예제 #11
0
 public XmlElementNode(XmlBufferReader bufferReader)
     : this(new StringHandle(bufferReader), new ValueHandle(bufferReader))
 {
 }
예제 #12
0
 public ValueHandle(XmlBufferReader bufferReader)
 {
     this.bufferReader = bufferReader;
     this.type         = ValueHandleType.Empty;
 }
예제 #13
0
 public StringHandle(XmlBufferReader bufferReader)
 {
     this.bufferReader = bufferReader;
     SetValue(0, 0);
 }