OutputStream

Interface for writable streams.

Members

Functions

close
void close()
Undocumented in source.
flush
void flush()
Undocumented in source.
printf
size_t printf(const(char)[] format, ...)
Undocumented in source.
vprintf
size_t vprintf(const(char)[] format, va_list args)

Print a formatted string into the stream using printf-style syntax, returning the number of bytes written.

write
size_t write(const(ubyte)[] buffer)

Write as much of the buffer as possible, returning the number of bytes written.

write
void write(byte x)

Write a basic type.

write
void write(ubyte x)
Undocumented in source.
write
void write(short x)
Undocumented in source.
write
void write(ushort x)
Undocumented in source.
write
void write(int x)
Undocumented in source.
write
void write(uint x)
Undocumented in source.
write
void write(long x)
Undocumented in source.
write
void write(ulong x)
Undocumented in source.
write
void write(float x)
Undocumented in source.
write
void write(double x)
Undocumented in source.
write
void write(real x)
Undocumented in source.
write
void write(char x)
Undocumented in source.
write
void write(wchar x)
Undocumented in source.
write
void write(dchar x)
Undocumented in source.
write
void write(const(char)[] s)

Writes a string, together with its length.

write
void write(const(wchar)[] s)
Undocumented in source.
writeExact
void writeExact(void* buffer, size_t size)

Write exactly size bytes from buffer, or throw a WriteException if that could not be done.

writeLine
void writeLine(const(char)[] s)

Write a line of text, appending the line with an operating-system-specific line ending.

writeLineW
void writeLineW(const(wchar)[] s)

Write a line of text, appending the line with an operating-system-specific line ending.

writeString
void writeString(const(char)[] s)

Write a string of text.

writeStringW
void writeStringW(const(wchar)[] s)

Write a string of text.

writef
OutputStream writef(...)

Print a formatted string into the stream using writef-style syntax. References: <a href="std_format.html">std.format</a>.

writefln
OutputStream writefln(...)
Undocumented in source.
writefx
OutputStream writefx(TypeInfo[] arguments, va_list argptr, int newline)
Undocumented in source.

Properties

isOpen
bool isOpen [@property getter]
Undocumented in source.

Meta