MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / get_elf_file_buf

Function get_elf_file_buf

kernel/tests/src/ext_t/behavior.cpp:132–136  ·  view source on GitHub ↗

<!-- description --> @brief Returns an allocated and initialized ELF file buffer for use during testing. <!-- inputs/outputs --> @return Returns an allocated and initialized ELF file buffer for use during testing.

Source from the content-addressed store, hash-verified

130 /// during testing.
131 ///
132 [[nodiscard]] constexpr auto
133 get_elf_file_buf() noexcept -> elf_file_buf_t
134 {
135 return {new bsl::uint8[ELF_FILE_BUF_SIZE.get()](), ELF_FILE_BUF_SIZE};
136 }
137
138 /// <!-- description -->
139 /// @brief Deletes the provided ELF file buffer.

Callers 1

behavior.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected