[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Stream which keeps data in memory.
Source position: objects.pp line 415
type TMemoryStream = object(TStream) |
||
|
Number of allocated memory blocks. |
|
|
Size of one memory block. |
|
|
Total memory size. |
|
|
Pointer to list of allocated blocks. |
|
constructor Init(); |
|
Initialize memory stream, reserves memory for stream data. |
destructor Done; virtual; |
|
Clean up memory and destroy the object instance. |
procedure Truncate; virtual; |
|
Set the stream size to the current position. |
procedure Read(); virtual; |
|
Read data from the stream to a location in memory. |
procedure Write(); virtual; |
|
Write data to the stream. |
end; |
|
Stream which keeps data in memory. |
|
| | ||
|
Base stream class. |
|
| | ||
|
Basis of all objects. |
|
| | ||
|
Base class of all classes. |
The TMemoryStream object implements a stream that stores it's data in memory. The data is stored on the heap, with the possibility to specify the maximum amount of data, and the size of the memory blocks being used.
|
Base stream class. |