public virtual int CompareByAddress(Db4objects.Db4o.Internal.Slots.Slot slot) { // FIXME: This is the wrong way around !!! // Fix here and in all referers. int res = slot._address - _address; if (res != 0) { return res; } return slot.Length() - Length(); }
public IdSlotMapping(int id, Db4objects.Db4o.Internal.Slots.Slot slot) : this(id, slot.Address(), slot.Length()) { }
public StatefulBuffer(Db4objects.Db4o.Internal.Transaction trans, Db4objects.Db4o.Internal.Slots.Slot slot) : this(trans, slot.Address(), slot.Length()) { }
public void UseSlot(Db4objects.Db4o.Internal.Slots.Slot slot) { _address = slot.Address(); _offset = 0; if (slot.Length() > _buffer.Length) { _buffer = new byte[slot.Length()]; } _length = slot.Length(); }
public virtual Db4objects.Db4o.Internal.Slots.Slot Append(Db4objects.Db4o.Internal.Slots.Slot slot) { return new Db4objects.Db4o.Internal.Slots.Slot(Address(), _length + slot.Length() ); }