Crate based16

Source
Expand description

Simple Base-16 (aka hexidecimal) encoding

Structs§

CharPair
Character pair representing single byte
Decoder
Decoder that transforms pairs of characters into individual decimal bytes
Encoder
Hex encoder, implements iterator returning individual byte as pair of characters.

Enums§

DecodeError
Error happening during decoding

Functions§

const_hex_lower
Creates HEX encoded array out of input
const_hex_upper
Creates HEX encoded array out of input
hex_lower
Writes lower case hex into out
hex_lower_to_vec
Writes lower case hex appending to out vector
hex_upper
Writes upper case hex into out
hex_upper_to_vec
Writes upper case hex appending to out vector
required_decode_len
Length required to decode HEX
required_encode_len
Length required to HEX encode
unhex
Decodes hex-encoded input into out, truncating by its size, if necessary.
unhex_pair
Converts hex character pair into underlying byte
unhex_to_vec
Decodes hex-encoded input into out, truncating by its size, if necessary.