Inheritance diagram for IReader:
Public Member Functions | |
IReader | get (inout bool x) |
IReader | get (inout byte x) |
IReader | get (inout ubyte x) |
IReader | get (inout short x) |
IReader | get (inout ushort x) |
IReader | get (inout int x) |
IReader | get (inout uint x) |
IReader | get (inout long x) |
IReader | get (inout ulong x) |
IReader | get (inout float x) |
IReader | get (inout double x) |
IReader | get (inout real x) |
IReader | get (inout char x) |
IReader | get (inout wchar x) |
IReader | get (inout dchar x) |
IReader | get (inout char[] x) |
IReader | get (inout wchar[] x) |
IReader | get (inout dchar[] x) |
IReader | get (IReadable x) |
IReader | push (uint size) |
void | wait () |
uint | length () |
IBuffer | getBuffer () |
void | setAllocator (IArrayAllocator memory) |
IArrayAllocator | getAllocator () |
void | setStringDecoder (IStringDecoder s) |
Definition at line 93 of file IReader.d.
|
These are the basic reader methods Reimplemented in AbstractReader. Referenced by UText::VersionMango::read(), RollCall::read(), Payload::read(), Message::read(), InvalidatorPayload::read(), testBuffer(), testClassIO(), testClassSerialization(), testCompositeIO(), testProtocol(), and testRandomAccess(). |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader, and TextReader. |
|
Reimplemented in AbstractReader, and TextReader. |
|
Reimplemented in AbstractReader, and TextReader. |
|
This is the mechanism used for binding arbitrary classes to the IO system. If a class implements IReadable, it can be used as a target for IReader get() operations. That is, implementing IReadable is intended to transform any class into an IReader adaptor for the content held therein. Reimplemented in AbstractReader. |
|
Push the size (in bytes) to use for the next array-read. By default, array sizes are read from the input stream, so this is the means by which one may specify the size where the stream is not formatted in such a manner.
Reimplemented in AbstractReader. |
|
Pause the current thread until some content arrives in the associated input buffer. This may stall forever. Reimplemented in AbstractReader. |
|
Return the size (byte count) of the subsequent data stream. This is typically read from the stream as a number, but may be provided by the client code via the push() method. Reimplemented in AbstractReader. Referenced by SliceAllocator::allocate(), BufferAllocator::allocate(), SimpleAllocator::allocate(), and Message::read(). |
|
Return the buffer associated with this reader Reimplemented in AbstractReader. Referenced by BufferAllocator::allocate(), BufferAllocator::isReadOnly(), LineScanner::read(), ReaderToken::read(), and BufferAllocator::reset(). |
|
Set the allocator to use for array management. Arrays are always allocated by the IReader. That is, you cannot read data into an array slice (for example). Instead, a number of IArrayAllocator classes are available to manage memory allocation when reading array content. By default, an IReader will allocate each array from the heap. You can change that behavior by calling this method with an IArrayAllocator of choice. For instance, there is a BufferAllocator which will slice an array directly from the buffer where possible. Also available is the record-oriented SliceAllocator, which slices memory from within a pre-allocated heap area, and should be reset by the client code after each record has been read (to avoid unnecessary growth). See ArrayAllocator for more information. Reimplemented in AbstractReader. |
|
Reimplemented in AbstractReader. Referenced by UString::VersionMango::read(). |
|
Set the configured IStringDecoder. 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. Reimplemented in AbstractReader. |