MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_format_win_err

Function llama_format_win_err

llama.cpp:797–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795
796#if defined(_WIN32)
797static std::string llama_format_win_err(DWORD err) {
798 LPSTR buf;
799 size_t size = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
800 NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&buf, 0, NULL);
801 if (!size) {
802 return "FormatMessageA failed";
803 }
804 std::string ret(buf, size);
805 LocalFree(buf);
806 return ret;
807}
808#endif
809
810struct llama_buffer {

Callers 4

llama_mmapMethod · 0.70
~llama_mmapMethod · 0.70
raw_lockMethod · 0.70
raw_unlockMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected