#include <rtdelphi.h>
Inheritance diagram for lrt::DelphiDataOutputStream:

Public Methods | |
| DelphiDataOutputStream (OutputStream *out) | |
| Creates a Delphi binary output stream which writes to another input stream. More... | |
| bool | writeAny (const Variant &) |
| Writes another element to the stream. | |
| bool | writeString (const String &) |
| Writes a String to the stream. More... | |
| bool | writeInt (int) |
| Writes an integer to the stream. More... | |
| bool | writeDouble (double) |
| Writes a double to the stream. | |
The advantage of the Delphi binary file format is that it has prefixes which indicate the type of the next data structure in the file, so that even if you don't know what's in the file, you can still properly parse it.
Even though the original Delphi format is Intel-centric, with little-endian data format, this library should work on any platform.
|
|
Creates a Delphi binary output stream which writes to another input stream. Note: When this output stream is deleted, the other one is deleted as well. |
|
|
Writes an integer to the stream. Note: This implementation uses the 8-bit, 16-bit and 32-bit integer formats, and always writes the smallest one which can hold the given number. |
|
|
Writes a String to the stream.
Note: This implementation uses the short ( |