Method to check neighbor pages

This commit is contained in:
Andrew Golovashevich 2025-12-20 01:04:34 +03:00
parent c60ffac4f6
commit d9574164f2

View File

@ -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> {