writeFrom method

  1. @override
int writeFrom(
  1. BytesIO io, [
  2. int? length
])
override

Writes length bytes from io.

Implementation

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