Inheritance diagram for Writer:
Public Types | |
typedef void | function (void *dst, uint count) Mutator |
Public Member Functions | |
this (IBuffer buffer) | |
this (IConduit conduit) | |
char[] | toString () |
void | write (void *src, uint count) |
void | write (void *src, uint count, uint mask, Mutator mutate) |
Private Member Functions | |
IBuffer | getBuffer () |
void | setStringEncoder (IStringEncoder s) |
IWriter | flush () |
IWriter | cr () |
void | enableArrayPrefix (bool on) |
IWriter | put (IWritable x) |
IWriter | put (char x) |
IWriter | put (wchar x) |
IWriter | put (dchar x) |
IWriter | put (char[] x) |
IWriter | put (bool x) |
IWriter | put (ubyte x) |
IWriter | put (byte x) |
IWriter | put (ushort x) |
IWriter | put (short x) |
IWriter | put (uint x) |
IWriter | put (int x) |
IWriter | put (ulong x) |
IWriter | put (long x) |
IWriter | put (float x) |
IWriter | put (double x) |
IWriter | put (real x) |
IWriter | putw (wchar[] x) |
IWriter | putd (dchar[] x) |
Static Private Member Functions | |
this () | |
Private Attributes | |
IBuffer | buffer |
StringEncoder | string |
NumericEncoder | numeric |
Static Private Attributes | |
INewlineWriter | newline |
IOException | ovf |
EofException | eof |
See AbstractWriter for usage examples.
Definition at line 52 of file Writer.d.
|
|
|
Construct a Writer upon the provided IBuffer. All formatted ouput will be appended to this buffer. Reimplemented from AbstractWriter. Reimplemented in HttpWriter, DisplayWriter, and EndianWriter. |
|
Construct a Writer on the buffer associated with the given conduit. Reimplemented in DisplayWriter. |
|
Return the name of this writer Reimplemented from AbstractWriter. Reimplemented in ColumnWriter, DisplayWriter, EndianWriter, and TextWriter. |
|
Definition at line 109 of file Writer.d. Referenced by EndianWriter::bits16(), EndianWriter::bits32(), EndianWriter::bits64(), and EndianWriter::bits80(). |
|
Definition at line 122 of file Writer.d. References IBuffer::flush(), IBuffer::getConduit(), IBuffer::grow(), IBuffer::put(), and IBuffer::writable(). |
|
Construct some static exception instances, and create the public 'newline' instance. Reimplemented in ColumnWriter. Definition at line 159 of file AbstractWriter.d. References AbstractWriter::newline, and AbstractWriter::ovf. |
|
Return the associated buffer Reimplemented from IWriter. Definition at line 185 of file AbstractWriter.d. |
|
Set the configured IStringEncoder. These are intended to be used as a conversion mechanism between various character representations. They are also expected to be used for the process of applying character encodings. See IStringEncoder. Reimplemented from IWriter. Definition at line 201 of file AbstractWriter.d. References IStringEncoder::char16(), AbstractWriter::StringEncoder::char16, IStringEncoder::char32(), AbstractWriter::StringEncoder::char32, IStringEncoder::char8(), and AbstractWriter::StringEncoder::char8. |
|
Flush the output of this writer. Returns false if the operation failed, true otherwise. Reimplemented from IWriter. Definition at line 215 of file AbstractWriter.d. References IBuffer::flush(). Referenced by testRandomAccess(). |
|
Output a newline. Do this indirectly so that it can be intercepted by subclasses. Reimplemented from IWriter. Definition at line 228 of file AbstractWriter.d. References AbstractWriter::newline, and AbstractWriter::put(). |
|
Definition at line 237 of file AbstractWriter.d. References AbstractWriter::prefixArray. Referenced by DisplayWriter::this(). |
|
Write a class to the current buffer-position Reimplemented from IWriter. Reimplemented in ColumnWriter, and TextWriter. Definition at line 261 of file AbstractWriter.d. References IWritable::write(). Referenced by AbstractWriter::cr(), DisplayWriter::format(), AbstractWriter::length(), AbstractWriter::VersionUseShiftOperators::opShl(), testBuffer(), testConduitFilters(), and testRandomAccess(). |
|
Write a char value to the current buffer-position Reimplemented from IWriter. Definition at line 274 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char8. |
|
Write a wide char value to the current buffer-position Reimplemented from IWriter. Definition at line 286 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char16. |
|
Write a double char value to the current buffer-position Reimplemented from IWriter. Definition at line 298 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char32. |
|
Write a char array to the current buffer-position Reimplemented from IWriter. Reimplemented in ColumnWriter, and TextWriter. Definition at line 310 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char8. |
|
Write a boolean value to the current buffer-position Reimplemented from IWriter. Definition at line 346 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int1. |
|
Write an unsigned byte value to the current buffer-position Reimplemented from IWriter. Definition at line 358 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int8u. |
|
Write a byte value to the current buffer-position Reimplemented from IWriter. Definition at line 370 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int8. |
|
Write an unsigned short value to the current buffer-position Reimplemented from IWriter. Definition at line 382 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int16u. |
|
Write a short value to the current buffer-position Reimplemented from IWriter. Definition at line 394 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int16. |
|
Write a unsigned int value to the current buffer-position Reimplemented from IWriter. Definition at line 406 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int32u. |
|
Write an int value to the current buffer-position Reimplemented from IWriter. Definition at line 418 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int32. |
|
Write an unsigned long value to the current buffer-position Reimplemented from IWriter. Definition at line 430 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int64u. |
|
Write a long value to the current buffer-position Reimplemented from IWriter. Definition at line 442 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::int64. |
|
Write a float value to the current buffer-position Reimplemented from IWriter. Definition at line 454 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::float32. |
|
Write a double value to the current buffer-position Reimplemented from IWriter. Definition at line 466 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::float64. |
|
Write a real value to the current buffer-position Reimplemented from IWriter. Definition at line 478 of file AbstractWriter.d. References AbstractWriter::NumericEncoder::float80. |
|
Write a char array to the current buffer-position Reimplemented from IWriter. Definition at line 322 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char16. Referenced by AbstractWriter::VersionUseShiftOperators::opShl(). |
|
Write a char array to the current buffer-position Reimplemented from IWriter. Definition at line 334 of file AbstractWriter.d. References AbstractWriter::StringEncoder::char32. Referenced by AbstractWriter::VersionUseShiftOperators::opShl(). |
|
Definition at line 130 of file AbstractWriter.d. Referenced by AbstractWriter::cr(), and AbstractWriter::this(). |
|
Definition at line 133 of file AbstractWriter.d. Referenced by AbstractWriter::this(). |
|
Definition at line 134 of file AbstractWriter.d. |
|
Definition at line 136 of file AbstractWriter.d. |
|
Definition at line 138 of file AbstractWriter.d. |
|
Definition at line 140 of file AbstractWriter.d. |