pub fn encode(input: &[u8]) -> Vec<u8> ⓘExpand description
Encode binary data as ASCII85 (base-85).
- Groups of 4 bytes encode to 5 ASCII characters in
!–urange. - A group of 4 zero bytes encodes to the single character
z. - A line break (
\r\n) is inserted every 75 output characters. - Terminated with
~>.
Mirrors PDFium’s BasicModule::A85Encode().