diff options
author | siddharth <s@ricketyspace.net> | 2021-09-04 16:56:20 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2021-09-04 16:56:20 -0400 |
commit | fbf74bd2d84db61a68b181b8923335b1f2d501fa (patch) | |
tree | 4a5f34eb992df6dab899ce49155fd71c6b750464 | |
parent | 96586719a509ac3e758ac8be5f022896f2ba6e50 (diff) |
lib: add BytesEqual
-rw-r--r-- | lib/byte.go | 4 |
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) +} |