[−][src]Module enc::hex
Functions
decode | Decodes the data into the target. Returns the length of the decoded data. This function is case-insensitive. If the encoded data has odd length the last byte will be ignored. If the encoded data is invalid it will be decoded without panicking though the output for invalid input is undefined. |
decode_byte | Decodes a single byte from two hex characters. This function is case-insensitive. This function will decode invalid data without panicking though the output for invalid input is undefined. |
decoded_length | Gets the length of the decoded data. If the encoded data has odd length the last byte will be ignored. This logic is consistent with the decode function. |
encode_byte_lower | Encodes a single byte as lowercase hex. |
encode_byte_upper | Encodes a single byte as uppercase hex. |
encode_lower | Encodes the data into the target as lowercase hex. Returns the length of the encoded data. |
encode_upper | Encodes the data into the target as uppercase hex. Returns the length of the encoded data. |
encoded_length | Gets the length of the encoded data. |
is_valid | Checks if the encoded data is valid hex. This function is case-insensitive. Encoded data with an odd length is considered invalid. |
is_valid_char | Checks if the char is valid hex. This function is case-insensitive. |