public ReadOnlySpan <byte> GetFileContents(CXFile file, out UIntPtr size) { fixed(UIntPtr *pSize = &size) { var pFileContents = clang.getFileContents(this, file, pSize); return(new ReadOnlySpan <byte>(pFileContents, (int)size)); } }
public void GetSpellingLocation(out CXFile file, out uint line, out uint column, out uint offset) { fixed(CXFile *pFile = &file) fixed(uint *pLine = &line) fixed(uint *pColumn = &column) fixed(uint *pOffset = &offset) { clang.getSpellingLocation(this, (void **)pFile, pLine, pColumn, pOffset); } }
public void GetFileLocation(out CXIdxClientFile indexFile, out CXFile file, out uint line, out uint column, out uint offset) { fixed(CXIdxClientFile *pIndexFile = &indexFile) fixed(CXFile * pFile = &file) fixed(uint *pLine = &line) fixed(uint *pColumn = &column) fixed(uint *pOffset = &offset) { clang.indexLoc_getFileLocation(this, (void **)pIndexFile, (void **)pFile, pLine, pColumn, pOffset); } }
public bool IsFileMultipleIncludeGuarded(CXFile file) => clang.isFileMultipleIncludeGuarded(this, file) != 0;
public CXSourceRangeList *GetSkippedRanges(CXFile file) => clang.getSkippedRanges(this, file);
public CXModule GetModuleForFile(CXFile file) => (CXModule)clang.getModuleForFile(this, file);
public CXSourceLocation GetLocationForOffset(CXFile file, uint offset) => clang.getLocationForOffset(this, file, offset);
public CXSourceLocation GetLocation(CXFile file, uint line, uint column) => clang.getLocation(this, file, line, column);
public CXResult FindIncludesInFile(CXFile file, CXCursorAndRangeVisitor visitor) => clang.findIncludesInFile(this, file, visitor);