initial commits

master
Charles Iliya Krempeaux 2023-10-28 13:22:38 -07:00
parent bcc8117048
commit 2838b466fe
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ import (
// EncodeByte encodes the value of a byte into hexadecimal.
func EncodeByte(value byte, symbolFunc func(byte)byte) (mostSignificant byte, leastSignificant byte) {
mostSignificant = symbolFunc( (0xf0 & value) >> 4 )
leastSignificant = symbolFunc( (0x0f & value) )
mostSignificant = symbolFunc( (0x0f & (value >> 4)) )
leastSignificant = symbolFunc( (0x0f & (value )) )
return
}