Skip to main content

detect_physical_memory_bytes

Function detect_physical_memory_bytes 

Source
pub fn detect_physical_memory_bytes() -> Option<u64>
Expand description

Returns physical memory when an in-process platform provider exposes it.

§Returns

Returns Some when crate::binaries::detect_physical_memory_bytes can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::binaries::detect_physical_memory_bytes();
  • crate::binaries for adjacent helpers that share the same runtime surface.