MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ToBuffer

Method ToBuffer

cpp/iedriver/StringUtilities.cpp:143–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void StringUtilities::ToBuffer(const std::string& input, std::vector<char>* buffer) {
144 buffer->resize(input.size() + 1);
145 strcpy_s(&((*buffer)[0]), buffer->size(), input.c_str());
146 (*buffer)[buffer->size() - 1] = L'\0';
147}
148
149void StringUtilities::ToBuffer(const std::wstring& input, std::vector<wchar_t>* buffer) {
150 buffer->resize(input.size() + 1);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected