leo_hex¶
leo_hex is utilities for calculation of hexadecimal.
References
Description¶
leo_hex is utilities for calculation of hexadecimal
Function Index¶
binary_to_hex/1 | Convert the value from binary to hex. |
hex_to_integer/1 | Convert the value from hex to integer. |
hex_to_string/1 | Convert the value from hex to string. |
integer_to_hex/2 | Convert the value from integer to hex. |
integer_to_raw_binary/1 | Convert the value from integer to raw-binary. |
integer_to_raw_binary/2 | Convert the value from integer to raw-binary. |
raw_binary_to_integer/1 | Convert the value from binary to integer. |
Function Details¶
hex_to_integer/1¶
hex_to_integer(Hex) -> integer()
- Hex = string()
Convert the value from hex to integer
integer_to_hex/2¶
integer_to_hex(I, Len) -> string()
- I = integer()
- Len = pos_integer()
Convert the value from integer to hex
integer_to_raw_binary/1¶
integer_to_raw_binary(I) -> binary()
- I = integer()
Convert the value from integer to raw-binary
integer_to_raw_binary/2¶
integer_to_raw_binary(I, Len) -> binary()
- I = integer()
- Len = pos_integer()
Convert the value from integer to raw-binary
raw_binary_to_integer/1¶
raw_binary_to_integer(Bin) -> integer()
- Bin = binary()
Convert the value from binary to integer