slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
ISlangMutableFileSystem结构体 参考abstract

#include <slang.h>

类 ISlangMutableFileSystem 继承关系图:
Inheritance graph
[图例]
ISlangMutableFileSystem 的协作图:
Collaboration graph
[图例]

Public 成员函数

 SLANG_COM_INTERFACE (0xa058675c, 0x1d65, 0x452a, {0x84, 0x58, 0xcc, 0xde, 0xd1, 0x42, 0x71, 0x5}) virtual SLANG_NO_THROW SlangResult SLANG_MCALL saveFile(const char *path
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL saveFileBlob (const char *path, ISlangBlob *dataBlob)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL remove (const char *path)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL createDirectory (const char *path)=0
 
- Public 成员函数 继承自 ISlangFileSystemExt
 SLANG_COM_INTERFACE (0x5fb632d2, 0x979d, 0x4481, {0x9f, 0xee, 0x66, 0x3c, 0x3f, 0x14, 0x49, 0xe1}) virtual SLANG_NO_THROW SlangResult SLANG_MCALL getFileUniqueIdentity(const char *path
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL calcCombinedPath (SlangPathType fromPathType, const char *fromPath, const char *path, ISlangBlob **pathOut)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL getPathType (const char *path, SlangPathType *pathTypeOut)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL getPath (PathKind kind, const char *path, ISlangBlob **outPath)=0
 
virtual SLANG_NO_THROW void SLANG_MCALL clearCache ()=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL enumeratePathContents (const char *path, FileSystemContentsCallBack callback, void *userData)=0
 
virtual SLANG_NO_THROW OSPathKind SLANG_MCALL getOSPathKind ()=0
 
- Public 成员函数 继承自 ISlangFileSystem
 SLANG_COM_INTERFACE (0x003A09FC, 0x3A4D, 0x4BA0, {0xAD, 0x60, 0x1F, 0xD8, 0x63, 0xA9, 0x15, 0xAB}) virtual SLANG_NO_THROW SlangResult SLANG_MCALL loadFile(char const *path
 
- Public 成员函数 继承自 ISlangUnknown
virtual SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface (SlangUUID const &uuid, void **outObject)=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef ()=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL release ()=0
 
 SLANG_COM_INTERFACE (0x00000000, 0x0000, 0x0000, {0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}) virtual SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface(SlangUUID const &uuid
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef ()=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL release ()=0
 
SlangResult QueryInterface (struct _GUID const &uuid, void **outObject)
 
uint32_t AddRef ()
 
uint32_t Release ()
 

Public 属性

const void * data
 
const void size_t size = 0
 
- Public 属性 继承自 ISlangFileSystemExt
ISlangBlob ** outUniqueIdentity = 0
 
- Public 属性 继承自 ISlangFileSystem
ISlangBlob ** outBlob = 0
 
- Public 属性 继承自 ISlangUnknown
void ** outObject = 0
 

成员函数说明

◆ createDirectory()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangMutableFileSystem::createDirectory ( const char * path)
pure virtual

Create a directory.

The path to the directory must exist

参数
pathTo the directory to create. The parent path must exist otherwise will return an error.
返回
SLANG_OK if successful

◆ remove()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangMutableFileSystem::remove ( const char * path)
pure virtual

Remove the entry in the path (directory of file). Will only delete an empty directory, if not empty will return an error.

参数
pathThe path to remove
返回
SLANG_OK if successful

◆ saveFileBlob()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangMutableFileSystem::saveFileBlob ( const char * path,
ISlangBlob * dataBlob )
pure virtual

Write data in the form of a blob to the specified path.

Depending on the implementation writing a blob might be faster/use less memory. It is assumed the blob is immutable and that an implementation can reference count it.

It is not guaranteed loading the same file will return the same blob - just a blob with same contents.

参数
pathThe path for data to be saved to
dataBlobThe data to be saved
返回
SLANG_OK if successful (SLANG_E_NOT_IMPLEMENTED if not implemented, or some other error code)

◆ SLANG_COM_INTERFACE()

ISlangMutableFileSystem::SLANG_COM_INTERFACE ( 0xa058675c ,
0x1d65 ,
0x452a ,
{0x84, 0x58, 0xcc, 0xde, 0xd1, 0x42, 0x71, 0x5}  ) const

Write data to the specified path.

参数
pathThe path for data to be saved to
dataThe data to be saved
sizeThe size of the data in bytes
返回
SLANG_OK if successful (SLANG_E_NOT_IMPLEMENTED if not implemented, or some other error code)

类成员变量说明

◆ data

const void* ISlangMutableFileSystem::data

◆ size

const void size_t ISlangMutableFileSystem::size = 0

该结构体的文档由以下文件生成: