1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cxx::bridge]
pub mod ffi {
    unsafe extern "C++" {
        include!("LIEF/rust/ELF/Sysvhash.hpp");

        type ELF_SysvHash;

        fn nbucket(self: &ELF_SysvHash) -> u32;
        fn nchain(self: &ELF_SysvHash) -> u32;
        fn buckets(self: &ELF_SysvHash) -> UniquePtr<CxxVector<u32>>;
        fn chains(self: &ELF_SysvHash) -> UniquePtr<CxxVector<u32>>;
    }

    impl UniquePtr<ELF_SysvHash> {}
}