Compare commits

..

2 Commits

Author SHA1 Message Date
Charles Iliya Krempeaux d8dd8412f4 initial commits 2023-10-27 22:19:59 -07:00
Charles Iliya Krempeaux 9f1f15a266 initial commits 2023-10-27 22:19:53 -07:00
2 changed files with 23 additions and 4 deletions

View File

@ -2,16 +2,17 @@ package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
)
func EncodeByte(value byte, symbolFunc func(byte)byte) (mostSignificant byte, leastSignificant byte) {
return hexadecabytes.EncodeByte(value, symbolFunc)
}
func EncodeByteUsingLowerCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) {
return hexadecabytes.EncodeByteUsingLowerCaseSymbols(value)
}
func EncodeByteUsingPersianSymbols(value byte) (mostSignificant rune, leastSignificant rune) {
return hexadecarunes.EncodeByteUsingPersianSymbols(value)
}
func EncodeByteUsingUpperCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) {
return hexadecabytes.EncodeByteUsingUpperCaseSymbols(value)
}

18
encodeuint16.go 100644
View File

@ -0,0 +1,18 @@
package hexadeca
import (
"sourcecode.social/reiver/go-hexadeca/bytes"
"sourcecode.social/reiver/go-hexadeca/runes"
)
func EncodeUint16UsingLowerCaseSymbols(value uint16) (r3 byte, r2 byte, r1 byte, r0 byte) {
return hexadecabytes.EncodeUint16UsingLowerCaseSymbols(value)
}
func EncodeUint16UsingPersianSymbols(value uint16) (r3 rune, r2 rune, r1 rune, r0 rune) {
return hexadecarunes.EncodeUint16UsingPersianSymbols(value)
}
func EncodeUint16UsingUpperCaseSymbols(value uint16) (r3 byte, r2 byte, r1 byte, r0 byte) {
return hexadecabytes.EncodeUint16UsingUpperCaseSymbols(value)
}