protected static void AssertHeapSpaceComesRightBefore(PersistentHeapSpace before, PersistentHeapSpace after) { if (before.EndIndex + 1 != after.SizeIndex) { throw new MemoryNotContinuousException("The memory spaces provided are not continuous"); } }
protected static void AssertHeapSpaceComesRightBefore(PersistentHeapSpace before, PersistentHeapSpace after) { if (before.EndIndex + 1 != after.SizeIndex) throw new MemoryNotContinuousException("The memory spaces provided are not continuous"); }
public bool IsDirectlyBefore(PersistentHeapSpace space) { return EndIndex + 1 == space.SizeIndex; }
public bool IsDirectlyAfter(PersistentHeapSpace space) { return space.EndIndex + 1 == SizeIndex; }
public bool IsDirectlyAfter(PersistentHeapSpace space) { return(space.EndIndex + 1 == SizeIndex); }
public bool IsDirectlyBefore(PersistentHeapSpace space) { return(EndIndex + 1 == space.SizeIndex); }
private void PutSizeSpace(PersistentHeapSpace space) { _file.Put(space.StartIndex, space.UserSize.ToBytes()); }
private void PutFullSpace(PersistentHeapSpace space) { _file.Put(space.SizeIndex, space.Serialize()); }