Construct a Block from hexadecimal input
.
- Parameters
-
input | a string containing hexadecimal bytes and comments. 0-9 and upper-case A-F are input; all other characters are comments. |
len | length of input . |
- Exceptions
-
std::invalid_argument | input is empty or has an odd number of hexadecimal digits. |
tlv::Error | input cannot be parsed into a valid Block. |
Example:
Block nameBlock = "0706 080141 080142"_block;
Block nackBlock = "FD032005 reason(no-route)=FD03210196"_block;
Definition at line 523 of file block.cpp.