diff --git a/pkg/memory/memory.go b/pkg/memory/memory.go deleted file mode 100644 index 1f7c913..0000000 --- a/pkg/memory/memory.go +++ /dev/null @@ -1,15 +0,0 @@ -package loader - -import ( - "unsafe" -) - -// WriteMemory writes the provided memory to the specified memory address. -// It does NOT check permissions, may cause panic if memory is not writable etc. -func WriteMemory(inbuf []byte, destination uintptr) { - for index := uint32(0); index < uint32(len(inbuf)); index++ { - writePtr := unsafe.Pointer(destination + uintptr(index)) - v := (*byte)(writePtr) - *v = inbuf[index] - } -}