vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

OutgoingWebSocketMessage.write - multiple declarations

Function OutgoingWebSocketMessage.write

Writes an array of bytes to the stream.

void write (
  const(ubyte[]) bytes

Function OutgoingWebSocketMessage.write

Pipes an InputStream directly into this OutputStream.

void write (
  InputStream stream,
  ulong nbytes = 0LU

The number of bytes written is either the whole input stream when nbytes == 0, or exactly nbytes for nbytes > 0. If the input stream contains less than nbytes of data, an exception is thrown.

Function OutputStream.write

Writes an array of chars to the stream.

final abstract void write (
  const(char[]) bytes

Jan Krüger


© 2012-2014 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.