Method to check neighbor pages
This commit is contained in:
parent
c60ffac4f6
commit
d9574164f2
@ -22,6 +22,11 @@ pub unsafe trait Reservation: Sized + Ord + Drop {
|
||||
unsafe fn commitPages(&mut self, indexOfFirst: usize, count: usize) -> *mut [u8];
|
||||
unsafe fn decommitPages(&mut self, indexOfFirst: usize, count: usize);
|
||||
unsafe fn release(self);
|
||||
|
||||
fn isFollowedBy(&self, next: &Self) -> bool;
|
||||
fn isPrecededBy(&self, next: &Self) -> bool {
|
||||
return next.isFollowedBy(self);
|
||||
}
|
||||
}
|
||||
|
||||
pub enum ExtendResult<T> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user