aboutsummaryrefslogtreecommitdiff
path: root/applap.go
diff options
context:
space:
mode:
Diffstat (limited to 'applap.go')
-rw-r--r--applap.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/applap.go b/applap.go
deleted file mode 100644
index 9d7f7c7..0000000
--- a/applap.go
+++ /dev/null
@@ -1,18 +0,0 @@
-//go:build purego
-
-package rabaead
-
-import "reflect"
-
-func anyOverlap(x, y []byte) bool {
- return len(x) > 0 && len(y) > 0 &&
- reflect.ValueOf(&x[0]).Pointer() <= reflect.ValueOf(&y[len(y)-1]).Pointer() &&
- reflect.ValueOf(&y[0]).Pointer() <= reflect.ValueOf(&x[len(x)-1]).Pointer()
-}
-
-func inexactOverlap(x, y []byte) bool {
- if len(x) == 0 || len(y) == 0 || &x[0] == &y[0] {
- return false
- }
- return anyOverlap(x, y)
-}

Snix LLC Git Repository Holder Copyright(C) 2022 All Rights Reserved Email To Snix.IR