macro_rules! dns_characters {
($value:expr $(,)?) => { ... };
}Expand description
Create a new Characters from a byte slice. The first byte of the slice
will be the length of the sequence. Only insert the characters, not the
length. The maximum length of the sequence is 255. This macro accepts an
expression as input, which is evaluated at compile time. If you want to
create a Characters from a byte slice of unknown length, use the
Characters::new function instead.
ยงExample
use flex_dns::characters::Characters;
use flex_dns::dns_characters;
const CHARACTERS: Characters = dns_characters!(b"Hello World!");