Documentation
¶
Index ¶
Constants ¶
View Source
const HEXA_DIGITS = "0123456789abcdef" // used to convert a byte into hexa digit
Variables ¶
This section is empty.
Functions ¶
func Append_hexastring ¶
Append_hexastring appends source in hexa notation, into dest string.
func Hexa2bin ¶
Hexa2bin copies source string made of hexa digits into dest, converting hexa digits into binary bytes. Empty binary string "0x" is allowed, and the result is an empty byte slice.
The hexa string must begin with "0x", else, an error is returned. "0x" is followed by hexa digits, from most significant bytes (MSB) to least significant bytes (LSB) if considered as number, or first byte to last byte if stream of bytes.
An error is returned if a non-hexa digit is found.
Types ¶
Click to show internal directories.
Click to hide internal directories.