Trait bitcoin_support::AllocateLocked
source · pub trait AllocateLocked {
// Required method
fn allocate_locked(&mut self, len: usize, locking_success: *mut bool);
}Required Methods§
sourcefn allocate_locked(&mut self, len: usize, locking_success: *mut bool)
fn allocate_locked(&mut self, len: usize, locking_success: *mut bool)
| Allocate and lock memory pages. | | If len is not a multiple of the system | page size, it is rounded up. | | Returns nullptr in case of allocation | failure. | | If locking the memory pages could not | be accomplished it will still return | the memory, however the lockingSuccess | flag will be false. lockingSuccess | is undefined if the allocation fails. |