/////////////////////////////////////////////////////////////////// /////////// METHODS ////// ///////////////////////////////////// /////////////////////////////////////////////////////////////////// /// <summary> /// Read node /// </summary> /// <param name="id"></param> public void Read(long id) { //VSDebug.StopPoint(id, 1323); ALLOCATION = sp.GetAllocation(id); string s = ALLOCATION.ReadString(0, 4); if (s != DEFS.AVL_SIGNATURE) { throw new VSException(DEFS.E0006_INVALID_SIGNATURE_CODE, "- VSAVL, at address 0x" + ALLOCATION.Address.ToString("X")); } }
/// <summary> /// Constructor - read index descriptor /// </summary> /// <param name="s"></param> /// <param name="addr"></param> internal VSIndex(VSpace space, long addr) { this.sp = space; this.ALLOCATION = sp.GetAllocationByDescriptor(addr); string s = ALLOCATION.ReadString(0, 4); if (s != DEFS.INDEX_SIGNATURE) { throw new VSException(DEFS.E0006_INVALID_SIGNATURE_CODE, " (Index Descriptor)"); } this.space_name = DEFS.ParseIndexSpace(this.Name); this.index_name = DEFS.ParseIndexName(this.Name); }