writeTo method

Future<void> writeTo(
  1. ByteArrayOutputStream other
)

Writes the contents of another ByteArrayOutputStream to this stream.

other - The ByteArrayOutputStream to write from

Implementation

Future<void> writeTo(ByteArrayOutputStream other) async {
  checkClosed();

  await write(other._buffer, 0, other._count);
}