MCPcopy Create free account
hub / github.com/Apache553/SubtitleFontHelper / ReadPipe

Function ReadPipe

FontLoadInterceptor/RpcClient.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 void ReadPipe(HANDLE pipe, void* dst, DWORD size)
137 {
138 DWORD readBytes;
139 THROW_LAST_ERROR_IF(ReadFile(pipe, dst, size, &readBytes, nullptr) == FALSE);
140 if (readBytes != size)
141 throw std::runtime_error("can't read enough data");
142 }
143
144 std::wstring AnsiStringToWideString(const char* str)
145 {

Callers 2

FetchResponseFunction · 0.85
AcceptRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected