weakauras-codec-base64 0.1.0

Provides heavily optimized routines for decoding and encoding base64 used for WeakAuras-compatible strings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2020-2025 Velithris
// SPDX-License-Identifier: MIT

#[allow(unused_macros)]
macro_rules! base64_encode {
    ($input:expr, $output:ident, $module:ident) => {
        let buffer = $output.as_mut_vec();
        let len = $module::encode_into_unchecked($input, buffer.spare_capacity_mut());
        buffer.set_len(len);
    };
}

#[allow(unused_imports)]
pub(crate) use base64_encode;