From d3a413c214a8be3e6388def1f28cee53e760f0cc Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 28 Oct 2023 11:54:25 -0700 Subject: [PATCH] initial commits --- encodeint64.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 encodeint64.go diff --git a/encodeint64.go b/encodeint64.go new file mode 100644 index 0000000..5851e73 --- /dev/null +++ b/encodeint64.go @@ -0,0 +1,18 @@ +package hexadeca + +import ( + "sourcecode.social/reiver/go-hexadeca/bytes" + "sourcecode.social/reiver/go-hexadeca/runes" +) + +func EncodeInt64UsingLowerCaseSymbols(value int64) (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.EncodeInt64UsingLowerCaseSymbols(value) +} + +func EncodeInt64UsingPersianSymbols(value int64) (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.EncodeInt64UsingPersianSymbols(value) +} + +func EncodeInt64UsingUpperCaseSymbols(value int64) (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.EncodeInt64UsingUpperCaseSymbols(value) +}