Exemplo n.º 1
0
 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;
 }
Exemplo n.º 5
0
 public bool IsDirectlyAfter(PersistentHeapSpace space)
 {
     return(space.EndIndex + 1 == SizeIndex);
 }
Exemplo n.º 6
0
 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());
 }