MCPcopy Create free account
hub / github.com/ByteCorum/DragonBurn / MemCopy

Method MemCopy

DragonBurn-kernel/intel_driver.cpp:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385bool intel_driver::MemCopy(uint64_t destination, uint64_t source, uint64_t size) {
386 if (!destination || !source || !size)
387 return 0;
388
389 COPY_MEMORY_BUFFER_INFO copy_memory_buffer = { 0 };
390
391 copy_memory_buffer.case_number = 0x33;
392 copy_memory_buffer.source = source;
393 copy_memory_buffer.destination = destination;
394 copy_memory_buffer.length = size;
395
396 DWORD bytes_returned = 0;
397 return DeviceIoControl(hDevice, ioctl1, &copy_memory_buffer, sizeof(copy_memory_buffer), nullptr, 0, &bytes_returned, nullptr);
398}
399
400bool intel_driver::SetMemory(uint64_t address, uint32_t value, uint64_t size) {
401 if (!address || !size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected