initial commits
parent
ebd57f680a
commit
ca79b19831
|
@ -7,8 +7,8 @@ import (
|
||||||
// EncodeByte encodes the value of a byte into hexadecimal.
|
// EncodeByte encodes the value of a byte into hexadecimal.
|
||||||
func EncodeByte(value byte, symbolFunc func(byte)rune) (mostSignificant rune, leastSignificant rune) {
|
func EncodeByte(value byte, symbolFunc func(byte)rune) (mostSignificant rune, leastSignificant rune) {
|
||||||
|
|
||||||
mostSignificant = symbolFunc( (0xf0 & value) >> 4 )
|
mostSignificant = symbolFunc( (0x0f & (value >> 4)) )
|
||||||
leastSignificant = symbolFunc( (0x0f & value) )
|
leastSignificant = symbolFunc( (0x0f & (value )) )
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue