pub fn reserve(bytes: usize) -> Result<*mut c_void, io::Error> {
    let ret = unsafe { VirtualAlloc(ptr::null_mut(), bytes, MEM_RESERVE, PAGE_NOACCESS) };
    if ret == ptr::null_mut() {
        Err(io::Error::last_os_error())
    } else {
        Ok(ret)
    }
}
/// Reserve address space without backing RAM anywhere in memory.
Reserve address space without backing RAM anywhere in memory.
Reserve address space without backing RAM anywhere in memory .
pub fn reserve(bytes: usize) -> Result<*mut c_void, io::Error> {
    let ret = unsafe { VirtualAlloc(ptr::null_mut(), bytes, MEM_RESERVE, PAGE_NOACCESS) };
    if ret == ptr::null_mut() {
        Err(io::Error::last_os_error())
    } else {
        Ok(ret)
    }
}
pub fn reserve ( bytes : usize ) -> Result < * mut c_void , io :: Error > { let ret = unsafe { VirtualAlloc ( ptr :: null_mut ( ) , bytes , MEM_RESERVE , PAGE_NOACCESS ) } ; if ret == ptr :: null_mut ( ) { Err ( io :: Error :: last_os_error ( ) ) } else { Ok ( ret ) } }
Reserve address space without backing RAM anywhere in memory.
Reserve address space without backing RAM anywhere in memory .
bytes
usize
bytes
usize