Skip to content
FutureBlitz

    Install

    Import std.io.streams

    Writer

    std.io.streams

    interface

    Public Interface Writer

    Where bytes go: a file, a socket, memory, or another Writer they go through.

    std/io/streams.fb, line 70

    • Method Write(from: Buffer<UInt8>) Throws IOError method #

      Writes all of from's bytes, in order.

    • Method Flush() Throws IOError method #

      Sends on what it holds on to, to what it writes to. One that holds nothing does nothing.

    • Async Method WriteAsync(from: Buffer<UInt8>) Throws IOError method #

      Write's Async twin, which waits on the main thread instead of blocking it.

    • Async Method FlushAsync() Throws IOError method #

      Flush's Async twin.

    • Final Method WriteBytes(bytes: UInt8[]) Throws IOError method #

      Writes the bytes.

    • Final Method WriteText(text: String) Throws IOError method #

      Writes a String's UTF-8 bytes.

    Report an issue with this page or with FutureBlitz on GitHub.