public bool Has(string key) { int position = 0; int index = id; while (index > 0) { int length = hierarchy.GetLength(index); int current = position = hierarchy.GetPosition(index); if (entry.IsEqual(ref current, key) && current == position + length) { break; } index = hierarchy.GetNext(index); } if (index > 0) { index = hierarchy.GetFirst(index); } return(index > 0); }
public XenonDocument(BufferEntry entry, XenonHierarchy hierarchy) : base(hierarchy.GetFirst(0), entry, hierarchy) { }