MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / CheckElfIdentity

Method CheckElfIdentity

src/include/kernel_elf.hpp:124–126  ·  view source on GitHub ↗

* 检查 elf 标识 * @return 成功返回 Expected ,失败返回错误 */

Source from the content-addressed store, hash-verified

122 * @return 成功返回 Expected<void>,失败返回错误
123 */
124 [[nodiscard]] auto CheckElfIdentity() const -> Expected<void> {
125 return CheckElfMagic().and_then([this]() { return CheckElfClass(); });
126 }
127
128 private:
129 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected