1use crate::encode;
2use crate::decode;
3
4pub fn from_bytes(input: Vec<Vec<u8>>) -> String {
5
6 let mut output: String = String::new();
7
8 for i in input {
9
10 if output != String::new() {
11 output.push(' ')
12 }
13
14 output.push_str(&encode::bytes(&i))
15
16 }
17
18 output
19
20}
21
22pub fn as_bytes(input: &str) -> Vec<Vec<u8>> {
23
24 let mut output: Vec<Vec<u8>> = Vec::new();
25
26 let split_arg: Vec<&str> = input.split(' ').collect();
27
28 for i in split_arg {
29 output.push(decode::as_bytes(i))
30 }
31
32 output
33
34}