[][src]Function yenc::encode_buffer

pub fn encode_buffer<W>(
    input: &[u8],
    col: u8,
    line_length: u8,
    writer: W
) -> Result<u8, EncodeError> where
    W: Write

Encodes the input buffer and writes it to the writer.

Lines are wrapped with a maximum of line_length characters per line. Does not include the header and footer lines. Only encode_stream and encode_file produce the headers in the output. The col parameter is the starting offset in the row. The result contains the new offset.