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) +}