pub unsafe fn deallocate_mirrored(ptr: *mut u8, size: usize) {
    let ptr2 = ptr.offset(size as isize / 2);
    MemoryMap::from_raw(ptr as *mut c_void);
    MemoryMap::from_raw(ptr2 as *mut c_void);
}
/// Deallocates the mirrored memory region at `ptr` of `size` bytes.
///
/// # Unsafe
///
/// `ptr` must have been obtained from a call to `allocate_mirrored(size)` and
/// not have been previously deallocated. Otherwise the behavior is undefined.
///
/// # Panics
///
/// If `size` is zero or `size / 2` is not a multiple of the
/// allocation granularity, or `ptr` is null.
Deallocates the mirrored memory region at `ptr` of `size` bytes.
Deallocates the mirrored memory region at ` ptr ` of ` size ` bytes .
pub unsafe fn deallocate_mirrored(ptr: *mut u8, size: usize) {
    let ptr2 = ptr.offset(size as isize / 2);
    MemoryMap::from_raw(ptr as *mut c_void);
    MemoryMap::from_raw(ptr2 as *mut c_void);
}
pub unsafe fn deallocate_mirrored ( ptr : * mut u8 , size : usize ) { let ptr2 = ptr . offset ( size as isize / 2 ) ; MemoryMap :: from_raw ( ptr as * mut c_void ) ; MemoryMap :: from_raw ( ptr2 as * mut c_void ) ; }
Deallocates the mirrored memory region at `ptr` of `size` bytes.
Deallocates the mirrored memory region at ` ptr ` of ` size ` bytes .
ptr
*mut u8
size
usize
ptr
*mut u8
size
usize
unsafe
`ptr` must have been obtained from a call to `allocate_mirrored(size)` and
not have been previously deallocated. Otherwise the behavior is undefined.
` ptr ` must have been obtained from a call to ` allocate_mirrored ( size ) ` and not have been previously deallocated . Otherwise the behavior is undefined .
panics
If `size` is zero or `size / 2` is not a multiple of the
allocation granularity, or `ptr` is null.
If ` size ` is zero or ` size / 2 ` is not a multiple of the allocation granularity or ` ptr ` is null .