From 039e75f35a75d666e0f568205fcf768a28e1fd2a Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 28 Oct 2023 13:35:39 -0700 Subject: [PATCH] initial commits --- README.md | 1 + encodeint8.go | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 encodeint8.go diff --git a/README.md b/README.md index 22fc251..13713ac 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Package **hexadeca** has functions for hexadecimal encoding and decoding for the * `uint16`, * `uint32` * `uint64` +* `int8` * `int16` * `int32` * `int64` diff --git a/encodeint8.go b/encodeint8.go new file mode 100644 index 0000000..39ebcf9 --- /dev/null +++ b/encodeint8.go @@ -0,0 +1,18 @@ +package hexadeca + +import ( + "sourcecode.social/reiver/go-hexadeca/bytes" + "sourcecode.social/reiver/go-hexadeca/runes" +) + +func EncodeInt8UsingLowerCaseSymbols(value int8) (mostSignificant byte, leastSignificant byte) { + return hexadecabytes.EncodeInt8UsingLowerCaseSymbols(value) +} + +func EncodeInt8UsingPersianSymbols(value int8) (mostSignificant rune, leastSignificant rune) { + return hexadecarunes.EncodeInt8UsingPersianSymbols(value) +} + +func EncodeInt8UsingUpperCaseSymbols(value int8) (mostSignificant byte, leastSignificant byte) { + return hexadecabytes.EncodeInt8UsingUpperCaseSymbols(value) +}