Struct SimpleMemoryFileSystem
Source pub struct SimpleMemoryFileSystem {
files: &'static [FileEntry],
}
Expand description
简单内存文件系统的主要结构,包含所有静态文件条目。
§函数:lookup
根据文件名查找文件的内容切片。
@param name - 要查找的文件名。
@returns - 如果找到,返回文件的内容切片;否则返回 None。
§函数:list_all
获取所有文件的名称列表。
§辅助函数:load_elf
这是供进程创建使用的主要接口。
@param name - ELF 文件名。
@returns - ELF 二进制数据的字节切片。
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.