Writes length bytes from io.
length
io
@override int writeFrom(BytesIO io, [int? length]) { length ??= io.remaining; var bs = io.readBytes(length); writeAll(bs); return bs.length; }