| 359 | } |
| 360 | |
| 361 | void HookProcessor::CopyDataToBuffer(int source_data_size, void* source) { |
| 362 | // clear the shared buffer before putting data into it |
| 363 | ClearBuffer(); |
| 364 | if (source_data_size < data_buffer_size) { |
| 365 | data_buffer_size = source_data_size; |
| 366 | } |
| 367 | memcpy_s(data_buffer, |
| 368 | data_buffer_size, |
| 369 | source, |
| 370 | data_buffer_size); |
| 371 | } |
| 372 | |
| 373 | void HookProcessor::CopyDataFromBuffer(int destination_data_size, |
| 374 | void* destination) { |
nothing calls this directly
no outgoing calls
no test coverage detected