Function base65536::decode_config_buf [] [src]

pub fn decode_config_buf<T: ?Sized + AsRef<str>>(
    input: &T,
    config: Config,
    buf: &mut Vec<u8>
) -> DecodeResult<()>

Decode from string reference as octets. Writes into supplied buffer to avoid unnecessary allocation.

Note that decode_config_buf and friends are very strict by default, even failing on line breaks, as to match behaviour with the original implementation. To prevent this, instead use with the ignore_garbage option, as such:

let mut output = Vec::new();

decode_config_buf(input, Config::new().ignore_garbage(true), &mut output)?;