/// The root page of this transaction (use with caution, this page
/// contains root databases).
pub unsafe fn root_page_mut(&mut self) -> &mut [u8; 4064] {
let env = self.env.borrow();
let maps = env.mmaps.lock();
let ptr = maps[0].ptr.add(self.root * PAGE_SIZE + GLOBAL_HEADER_SIZE);
&mut *(ptr as *mut [u8; 4064])
}
/// The root page of this transaction.
pub unsafe fn root_page(&mut self) -> &[u8; 4064] {
let env = self.env.borrow();
let maps = env.mmaps.lock();
let ptr = maps[0].ptr.add(self.root * PAGE_SIZE + GLOBAL_HEADER_SIZE);
&*(ptr as *const [u8; 4064])
}