MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / BytesToString

Method BytesToString

WinArk/RegExportImport.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79CString RegExportImport::BytesToString(BYTE const* data, DWORD count) {
80 CString text, chars;
81 for (DWORD i = 0; i < count; i++) {
82 chars.Format(L"%02X", data[i]);
83 if (i % 32 == 31 && i < count - 1)
84 text += L"\\\n";
85 text += chars;
86 }
87 return text.Left(text.GetLength() - 1);
88}
89
90bool RegExportImport::WriteString(HANDLE hFile, CString const& text) {
91 DWORD bytes;

Callers

nothing calls this directly

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected