TROBinaryMemoryStream
From RemObjects Software
This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.
Overview
The TROBinaryMemoryStream (or short Binary) class builds upon the standard memory stream provided by the Delphi VCL to extend it with additional methods that make it easier to use.
This class forms the basis for passing unstructured binary data between clients and servers, and will be used whenever you declare "Binary" types in your RODL files.
File
- uROClasses
Declaration
TROBinaryMemoryStream = class(TMemoryStream);
Hierarchy
- TMemoryStream
- TROBinaryMemoryStream
Methods
| | |
|---|---|
| Clone | Creates and returns a new memory stream that is an identical copy of the current stream. The new stream will receive its own copy of the data, and any changes to data or stream position will not affect the original version. |
| LoadFromHexString | Loads the binary from a string containing data in hexadecimal representation. The new data will replace the entire stream, and the stream will be positioned at the beginning. |
| LoadFromString | Loads the binary from a string. The new data will replace the entire stream, and the stream will be positioned at the beginning. |
| ToHexString | Emits the data in the stream as a string containing hexadecimal characters. For each byte in the original stream, two characters between '0' and 'F' will be emitted to the string. |
| ToReadableString | Emits the data in the stream as ANSI string for display purposes. For each byte in the original stream, the corresponding ASCII character will be emitted to the string if the value is $0D or between $20 and $7F, and a "period" character will be emitted otherwise. This results in a string that can cleanly be displayed and does not contain ASCII control characters. |
| ToString | Emits the data in the stream as ANSI string. For each byte in the original stream, the corresponding ANSI character will be emitted to the string. |
See Also
Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | RemObjects SDK | Architecture | Class | Delphi
