14 if (v.size() % 4) Write(NULL, 4 - (v.size() % 4));
17 void Write(LPCVOID pvWrite, DWORD cbWrite)
19 v.insert(v.end(), cbWrite, 0);
20 if (pvWrite) CopyMemory(&v[v.size() - cbWrite], pvWrite, cbWrite);
23 template<
typename T>
void Write(T t) { Write(&t,
sizeof(T)); }
24 void WriteString(LPCWSTR psz)
26 Write(psz, (lstrlenW(psz) + 1) *
sizeof(WCHAR));
30 const std::vector<BYTE>& GetBuffer()
const