631 B
631 B
IFileSystem::ReadFile
命名空间: XCEngine::Platform
类型: method
头文件: XCEngine/Platform/IFileSystem.h
签名
virtual std::unique_ptr<uint8_t[]> ReadFile(const char* path, size_t* outSize) const = 0;
作用
读取整个文件内容,并把字节缓冲区所有权交给调用方。
当前契约
path是目标文件路径。outSize用于返回读取到的字节数。- 返回值是
std::unique_ptr<uint8_t[]>,其内存所有权属于调用方。