Skip to main content

decode_into

Function decode_into 

Source
pub fn decode_into(
    out: &mut Vec<u8>,
    src: &[u8],
    kf: u32,
) -> Result<(), DecodeError>
Expand description

Decodes base94 text (see encode_into) and appends the bytes to out. On invalid input out is left unchanged and an error is returned.

A SIMD bulk pass proves >= 0x20 for every char up front and a vectorized kernel decodes whole 16-char blocks (leader/follower pairing, escape reconstruction and leader compaction in-register). Invalid constructs fall back to the scalar reference loop, which reports the exact wire-legal error; both paths are bit-exact (pinned by the fuzz test below).