MCPcopy Create free account
hub / github.com/lief-project/LIEF / MappingInfo>

Method MappingInfo>

api/python/src/DyldSharedCache/pyMappingInfo.cpp:6–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace LIEF::dsc::py {
5template<>
6void create<dsc::MappingInfo>(nb::module_& m) {
7 nb::class_<dsc::MappingInfo> obj(m, "MappingInfo",
8 R"doc(
9 This class represents a ``dyld_cache_mapping_info`` entry.
10
11 It provides information about the relationshiop between on-disk shared cache
12 and in-memory shared cache.
13 )doc"_doc
14 );
15
16 obj
17 .def_prop_ro("address", &dsc::MappingInfo::address,
18 R"doc(The in-memory address where this dyld shared cache region is mapped)doc"_doc
19 )
20 .def_prop_ro("size", &dsc::MappingInfo::size,
21 R"doc(Size of the region being mapped)doc"_doc
22 )
23 .def_prop_ro("end_address", &dsc::MappingInfo::end_address,
24 R"doc(End virtual address of the region)doc"_doc
25 )
26 .def_prop_ro("file_offset", &dsc::MappingInfo::file_offset,
27 R"doc(On-disk file offset)doc"_doc
28 )
29 .def_prop_ro("max_prot", &dsc::MappingInfo::max_prot,
30 R"doc(Max memory protection)doc"_doc
31 )
32 .def_prop_ro("init_prot", &dsc::MappingInfo::init_prot,
33 R"doc(Initial memory protection)doc"_doc
34 )
35 ;
36}
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected