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

Method IsValid

src/include/io_buffer.hpp:46–48  ·  view source on GitHub ↗

检查区域是否有效(非空指针且大小非零)

Source from the content-addressed store, hash-verified

44
45 /// 检查区域是否有效(非空指针且大小非零)
46 [[nodiscard]] auto IsValid() const -> bool {
47 return virt != nullptr && size > 0;
48 }
49
50 /// @brief 获取虚拟基地址的类型化指针
51 /// @return uint8_t* 缓冲区数据指针

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected