internal unsafe bool Equals(Utf8String s) { if ((IntPtr)this.m_pStringHeap == IntPtr.Zero) { return(s.m_StringHeapByteLength == 0); } if (s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0) { return(Utf8String.EqualsCaseSensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength)); } return(false); }
internal bool Equals(Utf8String s) { if (this.m_pStringHeap == null) { return(s.m_StringHeapByteLength == 0); } return(s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0 && Utf8String.EqualsCaseSensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength)); }