summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-09-04 16:56:20 -0400
committersiddharth <s@ricketyspace.net>2021-09-04 16:56:20 -0400
commitfbf74bd2d84db61a68b181b8923335b1f2d501fa (patch)
tree4a5f34eb992df6dab899ce49155fd71c6b750464 /lib
parent96586719a509ac3e758ac8be5f022896f2ba6e50 (diff)
lib: add BytesEqual
Diffstat (limited to 'lib')
-rw-r--r--lib/byte.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/byte.go b/lib/byte.go
index 7e5ead4..48f3a38 100644
--- a/lib/byte.go
+++ b/lib/byte.go
@@ -39,3 +39,7 @@ func ByteIsUpper(b byte) bool {
}
return false
}
+
+func BytesEqual(a, b []byte) bool {
+ return BlocksEqual(a, b)
+}