writeBuffer method

Future<Buffer> writeBuffer(
  1. Buffer buffer
)

Writes buffer to the socket, and returns the same buffer in a Future which completes when it has all been written.

Implementation

Future<Buffer> writeBuffer(Buffer buffer) {
  return writeBufferPart(buffer, 0, buffer.length);
}