pub fn alloc(addr: usize, bytes: usize) -> Result<(), io::Error> {
    let ret = unsafe { VirtualAlloc(addr as *mut _, bytes, MEM_COMMIT, PAGE_READWRITE) };
    assert_eq!(addr, ret as usize);
    Ok(())
}
/// Allocate already reserved readable and writeable memory.
///
/// This can assume that `addr` is already reserved and that `bytes` fits in
/// the reserved memory.
Allocate already reserved readable and writeable memory.
This can assume that `addr` is already reserved and that `bytes` fits in
the reserved memory.
Allocate already reserved readable and writeable memory . This can assume that ` addr ` is already reserved and that ` bytes ` fits in the reserved memory .
pub fn alloc(addr: usize, bytes: usize) -> Result<(), io::Error> {
    let ret = unsafe { VirtualAlloc(addr as *mut _, bytes, MEM_COMMIT, PAGE_READWRITE) };
    assert_eq!(addr, ret as usize);
    Ok(())
}
pub fn alloc ( addr : usize , bytes : usize ) -> Result < ( ) , io :: Error > { let ret = unsafe { VirtualAlloc ( addr as * mut _ , bytes , MEM_COMMIT , PAGE_READWRITE ) } ; assert_eq ! ( addr ret as usize ) ; Ok ( ( ) ) }
Allocate already reserved readable and writeable memory.
Allocate already reserved readable and writeable memory .
addr
usize
bytes
usize
addr
usize
bytes
usize