(a unsafe.Pointer, b unsafe.Pointer, bytes int)
| 21 | ) |
| 22 | |
| 23 | func byteToByteCopy(a unsafe.Pointer, b unsafe.Pointer, bytes int) bool { |
| 24 | for i := 0; i < bytes; i++ { |
| 25 | if *(*uint8)(MemAccess(a, i)) != *(*uint8)(MemAccess(b, i)) { |
| 26 | return false |
| 27 | } |
| 28 | } |
| 29 | return true |
| 30 | } |
| 31 | |
| 32 | func BenchmarkMemEqual(b *testing.B) { |
| 33 | key1 := [16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} |
no test coverage detected