| 371 | } |
| 372 | |
| 373 | void 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 | |
| 386 | void HookProcessor::CopyWStringToBuffer(const std::wstring& data) { |
| 387 | std::vector<wchar_t> local_buffer(0); |
nothing calls this directly
no outgoing calls
no test coverage detected