|
slot 0.0.1
A real time UI render framework
|
#include <slang.h>


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').
| 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
| path | The path to load from, as a null-terminated UTF-8 string. |
| outBlob | A destination pointer to receive the blob of the file contents. |
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).
| ISlangBlob** ISlangFileSystem::outBlob = 0 |