From c67dede4be3bedcabd64c122856b2b7d32adad2c Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 28 Oct 2023 11:35:45 -0700 Subject: [PATCH] initial commits --- encodeuint64.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 encodeuint64.go diff --git a/encodeuint64.go b/encodeuint64.go new file mode 100644 index 0000000..b831eaf --- /dev/null +++ b/encodeuint64.go @@ -0,0 +1,18 @@ +package hexadeca + +import ( + "sourcecode.social/reiver/go-hexadeca/bytes" + "sourcecode.social/reiver/go-hexadeca/runes" +) + +func EncodeUint64UsingLowerCaseSymbols(value uint64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { + return hexadecabytes.EncodeUint64UsingLowerCaseSymbols(value) +} + +func EncodeUint64UsingPersianSymbols(value uint64) (r15 rune, r14 rune, r13 rune, r12 rune, r11 rune, r10 rune, r9 rune, r8 rune, r7 rune, r6 rune, r5 rune, r4 rune, r3 rune, r2 rune, r1 rune, r0 rune) { + return hexadecarunes.EncodeUint64UsingPersianSymbols(value) +} + +func EncodeUint64UsingUpperCaseSymbols(value uint64) (r15 byte, r14 byte, r13 byte, r12 byte, r11 byte, r10 byte, r9 byte, r8 byte, r7 byte, r6 byte, r5 byte, r4 byte, r3 byte, r2 byte, r1 byte, r0 byte) { + return hexadecabytes.EncodeUint64UsingUpperCaseSymbols(value) +}