MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / WriteStreamPacket

Method WriteStreamPacket

source/Debugger.cpp:2034–2042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032//
2033
2034int Debugger::WriteStreamPacket(LPCTSTR aText, LPCSTR aType)
2035{
2036 ASSERT(!mResponseBuf.mFailed);
2037 mResponseBuf.WriteF("<stream type=\"%s\">", aType);
2038 CStringUTF8FromTChar packet(aText);
2039 mResponseBuf.WriteEncodeBase64(packet, packet.GetLength() + 1); // Includes the null-terminator.
2040 mResponseBuf.Write("</stream>");
2041 return SendResponse();
2042}
2043
2044bool Debugger::OutputStdErr(LPCTSTR aText)
2045{

Callers

nothing calls this directly

Calls 4

WriteFMethod · 0.80
WriteEncodeBase64Method · 0.80
GetLengthMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected