lief 1.0.0

Official Rust bindings for LIEF
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use lief_ffi as ffi;

/// This structure exposes Android-specific host information.
pub struct Host {}

impl Host {
    /// Return the Android SDK/API level of the device (e.g. `34` for Android
    /// 14).
    pub fn sdk_version() -> Option<u32> {
        let version = ffi::runtime_android_Host::sdk_version();
        if version < 0 {
            None
        } else {
            Some(version as u32)
        }
    }
}