用户自定义节点,RamFS 仅负责命名和查找 / User-defined node; RamFS only stores and finds it by name
More...
#include <ramfs.hpp>
|
| | Custom (const char *name, uint32_t kind=0, void *context=nullptr) |
| | 构造自定义节点 / Construct a custom node
|
| |
| FsNodeType | GetNodeType () const |
| | 获取节点类型 / Get the node type
|
| |
| const char * | GetName () const |
| | 获取节点名称 / Get the node name
|
| |
|
| uint32_t | kind_ = 0 |
| | 用户定义类型 / User-defined kind
|
| |
| void * | context_ = nullptr |
| | 用户上下文指针 / User context pointer
|
| |
用户自定义节点,RamFS 仅负责命名和查找 / User-defined node; RamFS only stores and finds it by name
Definition at line 252 of file ramfs.hpp.
◆ Custom() [1/2]
| RamFS::Custom::Custom |
( |
const char * | name, |
|
|
uint32_t | kind = 0, |
|
|
void * | context = nullptr ) |
|
explicit |
构造自定义节点 / Construct a custom node
- Parameters
-
| name | 节点名称 / Node name |
| kind | 用户定义类型 / User-defined kind |
| context | 用户上下文指针 / User context pointer |
- Note
- 包含动态内存分配 / Contains dynamic memory allocation
Definition at line 42 of file ramfs.cpp.
43{
44 this->name_ = DuplicateName(name);
47}
Custom(const char *name, uint32_t kind=0, void *context=nullptr)
构造自定义节点 / Construct a custom node
void * context_
用户上下文指针 / User context pointer
uint32_t kind_
用户定义类型 / User-defined kind
◆ Custom() [2/2]
| RamFS::Custom::Custom |
( |
| ) |
|
|
private |
Definition at line 40 of file ramfs.cpp.
@ CUSTOM
用户自定义节点 / User-defined node
◆ context_
| void* LibXR::RamFS::Custom::context_ = nullptr |
用户上下文指针 / User context pointer
Definition at line 266 of file ramfs.hpp.
◆ kind_
| uint32_t LibXR::RamFS::Custom::kind_ = 0 |
用户定义类型 / User-defined kind
Definition at line 265 of file ramfs.hpp.
The documentation for this class was generated from the following files: