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

#include <slang.h>

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

Public 成员函数

 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 属性

ISlangBlob ** outBlob = 0
 
- Public 属性 继承自 ISlangUnknown
void ** outObject = 0
 

详细描述

A (real or virtual) file system.

Slang can make use of this interface whenever it would otherwise try to load files from disk, allowing applications to hook and/or override filesystem access from the compiler.

It is the responsibility of the caller of any method that returns a ISlangBlob to release the blob when it is no longer used (using 'release').

成员函数说明

◆ SLANG_COM_INTERFACE()

ISlangFileSystem::SLANG_COM_INTERFACE ( 0x003A09FC ,
0x3A4D ,
0x4BA0 ,
{0xAD, 0x60, 0x1F, 0xD8, 0x63, 0xA9, 0x15, 0xAB}  ) const

Load a file from path and return a blob of its contents

参数
pathThe path to load from, as a null-terminated UTF-8 string.
outBlobA destination pointer to receive the blob of the file contents.
返回
A SlangResult to indicate success or failure in loading the file.

NOTE! This is a binary load - the blob should contain the exact same bytes as are found in the backing file.

If load is successful, the implementation should create a blob to hold the file's content, store it to outBlob, and return 0. If the load fails, the implementation should return a failure status (any negative value will do).

类成员变量说明

◆ outBlob

ISlangBlob** ISlangFileSystem::outBlob = 0

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