MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / SegmentEntry

Class SegmentEntry

src/elf.cpp:203–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203struct SegmentEntry {
204 ELFIO::Elf64_Off data_offset;
205 ELFIO::Elf64_Addr physical_address;
206 ELFIO::Elf_Xword memory_size;
207};
208
209std::optional<size_t> get_segment(const std::vector<SegmentEntry>& segments, ELFIO::Elf_Xword section_size, ELFIO::Elf64_Off section_offset) {
210 // A linear search is safest even if the segment list is sorted, as there may be overlapping segments

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected