Class TStreamHelper
Unit
Declaration
type TStreamHelper = class helper(TObject) for TStream
Description
TStream helper class for string manipulation in streams
Hierarchy
- TObject
- TStreamHelper
Overview
Methods
![]() |
function GetString: String; |
![]() |
procedure SetString(const AString: String); |
Description
Methods
![]() |
function GetString: String; |
|
Reads a string from the stream, which was previously written with SetString.
Example: var MyStream: TMemoryStream; S: String; begin MyStream := TMemoryStream.Create; try MyStream.SetString('Hello, World!'); MyStream.Position := 0; S := MyStream.GetString; Writeln('Read string: ', S); finally MyStream.Free; end; end; ReturnsThe string read from the stream. | |
Generated by PasDoc 0.16.0-snapshot.
