Function b64_rs::decode

source ·
pub fn decode(value: &str) -> String
Examples found in repository?
examples/benchmark.rs (line 23)
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fn main() {
    let text = load_text();
    let encoded_text = encode(&text);

    println!("\nEncoding {COUNT} times...");
    println!("========================");
    measure(COUNT, || {
        encode(&text);
    });

    println!("\nDecoding {COUNT} times...");
    println!("========================");
    measure(COUNT, || {
        decode(&encoded_text);
    });
}