internal void Remove() { RarMemBlock temp = new RarMemBlock(Memory); temp.Address = GetPrev(); temp.SetNext(GetNext()); // prev.setNext(next); temp.Address = GetNext(); temp.SetPrev(GetPrev()); // next.setPrev(prev); // next = -1; // prev = -1; }
internal void InsertAt(RarMemBlock p) { RarMemBlock temp = new RarMemBlock(Memory); SetPrev(p.Address); temp.Address = GetPrev(); SetNext(temp.GetNext()); // prev.getNext(); temp.SetNext(this); // prev.setNext(this); temp.Address = GetNext(); temp.SetPrev(this); // next.setPrev(this); }
internal void SetNext(RarMemBlock next) { SetNext(next.Address); }
internal void SetPrev(RarMemBlock prev) { SetPrev(prev.Address); }