MemCopy performs memory copy of specified bytes from src to dst
(dst unsafe.Pointer, src unsafe.Pointer, bytes int)
| 38 | |
| 39 | // MemCopy performs memory copy of specified bytes from src to dst |
| 40 | func MemCopy(dst unsafe.Pointer, src unsafe.Pointer, bytes int) { |
| 41 | for i := 0; i < bytes; i++ { |
| 42 | *(*uint8)(MemAccess(dst, i)) = *(*uint8)(MemAccess(src, i)) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // MemSwap performs memory copy of specified bytes from src to dst |
| 47 | func MemSwap(dst unsafe.Pointer, src unsafe.Pointer, bytes int) { |
no test coverage detected