10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAUTILS_H 11 #define LLVM_DEBUGINFO_PDB_DIA_DIAUTILS_H 16 template <
typename Obj>
18 HRESULT (__stdcall Obj::*Func)(BSTR *)) {
20 HRESULT Result = (Object.*Func)(&Str16);
31 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAUTILS_H
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
std::string invokeBstrMethod(Obj &Object, HRESULT(__stdcall Obj::*Func)(BSTR *))
bool convertUTF16ToUTF8String(ArrayRef< char > SrcBytes, std::string &Out)
Converts a stream of raw bytes assumed to be UTF16 into a UTF8 std::string.