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

Method Setting

WinArk/Settings.h:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 int Size;
17
18 Setting(std::wstring name, const std::wstring& value) :Name(std::move(name)) {
19 Buffer = std::make_unique<uint8_t[]>(Size = (1 + (int)value.size()) * sizeof(wchar_t));
20 ::memcpy(Buffer.get(), value.data(), Size);
21 }
22
23 template<typename T>
24 Setting(std::wstring name, const T& value, SettingType type) : Name(std::move(name)), Type(type) {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected