initial commits

master
Charles Iliya Krempeaux 2023-10-28 13:35:39 -07:00
parent 70d720b8dd
commit 039e75f35a
2 changed files with 19 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Package **hexadeca** has functions for hexadecimal encoding and decoding for the
* `uint16`,
* `uint32`
* `uint64`
* `int8`
* `int16`
* `int32`
* `int64`

18
encodeint8.go 100644
View File

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