From fbf74bd2d84db61a68b181b8923335b1f2d501fa Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 4 Sep 2021 16:56:20 -0400 Subject: lib: add BytesEqual --- lib/byte.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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) +} -- cgit v1.2.3