[−][src]Function slang_sys::spAddTranslationUnitSourceBlob
pub unsafe extern "C" fn spAddTranslationUnitSourceBlob(
request: *mut SlangCompileRequest,
translationUnitIndex: c_int,
path: *const c_char,
sourceBlob: *mut ISlangBlob
)
Add a blob of source code to the given translation unit.
@param request The compile request that owns the translation unit.
@param translationUnitIndex The index of the translation unit to add source to.
@param path The file-system path that should be assumed for the source code.
@param sourceBlob A blob containing UTF-8 encoded source code.
@param sourceEnd A pointer to to the end of the buffer specified in sourceBegin
The compile request will retain a reference to the blob.
The path
will be used in any diagnostic output, as well
as to determine the base path when resolving relative
#include
s.