Skip to main content

user_ptr_ok

Function user_ptr_ok 

Source
pub fn user_ptr_ok<T>(ptr: usize, count: usize) -> bool
Expand description

Tcount 個読むためのポインタとして妥当か検査する (範囲 + アライメント + 要素数オーバーフロー)。