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

Method CopyDataFromBuffer

cpp/iedriver/HookProcessor.cpp:373–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void HookProcessor::CopyDataFromBuffer(int destination_data_size,
374 void* destination) {
375 if (data_buffer_size >= destination_data_size) {
376 destination_data_size = data_buffer_size;
377 }
378 memcpy_s(destination,
379 destination_data_size,
380 data_buffer,
381 destination_data_size);
382 // clear the shared buffer after taking data out of it.
383 ClearBuffer();
384}
385
386void HookProcessor::CopyWStringToBuffer(const std::wstring& data) {
387 std::vector<wchar_t> local_buffer(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected