std.io

IOs

This module provides IO traits and interfaces. It also imports std.io.file and std.io.net.

License

Boost License 1.0.

Authors

Martin Nowak

Source: std/io/_package.d

Types 3

interfaceInput

Input interface for code requiring a polymorphic API.

Methods
size_t read(scope ubyte[] buf) @safe @nogc scope;read from device into buffer
size_t read(scope ubyte[][] bufs...) @safe @nogc scope;read from device into multiple buffers
interfaceOutput

Output interface for code requiring a polymorphic API.

Methods
size_t write(const scope ubyte[] buf) @safe @nogc scope;write buffer content to device
size_t write(const scope ubyte[][] bufs...) @safe @nogc scope;write multiple buffer contents to device
classIOObject(IO) : IOInterfaces!IO

A template class implementing the supported IOInterfaces.

Fields
IO iothe contained `IO`
Constructors
this(IO io)construct class from `io`

Functions 1

fnIOObject!IO ioObject(IO)(IO io)IFTI construction helper for `IOObject`

Templates 1

tmplIOInterfaces(IO) if (isInput!IO || isOutput!IO)

Returns an alias sequence Input and Output, depending on what IO implements.