Function base64::engine::general_purpose::decode_suffix::decode_suffix
source ยท pub(crate) fn decode_suffix(
input: &[u8],
input_index: usize,
output: &mut [u8],
output_index: usize,
decode_table: &[u8; 256],
decode_allow_trailing_bits: bool,
padding_mode: DecodePaddingMode,
) -> Result<DecodeMetadata, DecodeError>
Expand description
Decode the last 1-8 bytes, checking for trailing set bits and padding per the provided parameters.
Returns the decode metadata representing the total number of bytes decoded, including the ones
indicated as already written by output_index
.