Wybxc / base16384-rs

(Rust) Encode binary file to printable utf16be, and vice versa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stream APIs

Wybxc opened this issue · comments

commented

Implement these APIs:

fn encode_stream(data: impl Iterator<u8>) -> impl Iterator<u16>;
fn decode_stream(data: impl Iterator<u16>) -> impl Iterator<Result<u8, Base16384DecodeError>>;

Questions:

  • std::io::Read variant for std feature?
  • runtime cost of Iterator<Result<_, _>>?