TStringStream class
Stream that stores its data in a string.
Declaration
TStringStream = class(TBytesStream)Inheritance
Description
TStringStream stores its data in an ansistring. The contents of
this string is available as the
DataString property. It also
introduces some methods to read or write parts of the stringstream's data
as a string.
The main purpose of a TStringSTream is to be able to treat a
string as a stream from which can be read.
See also
Properties
DataString | public | Contains the contents of the stream in string form. |
AnsiDataString | public | |
UnicodeDataString | public | Datastring as unicode string. |
OwnsEncoding | public | Does the stream instance owns the encoding. |
Encoding | public | Encoding of the string with the data. |
Methods
Create | public | Creates a new stringstream and sets its initial content. |
CreateRaw | public | Create stringstream using codepage of string. |
Destroy | public | Free the instance of the stream. |
ReadUnicodeString | public | Read a unicode string from the stream. |
WriteUnicodeString | public | Write a unicode string to the stream. |
ReadAnsiString | public | Read an ansistring from the stream. |
WriteAnsiString | public | Write an ansistring to the stream. |
ReadString | public | Reads a string of length Count. |
WriteString | public | WriteString writes a string to the stream. |
Inherited
From TMemoryStream (6)
From TCustomMemoryStream (9)
GetPosition GetSize Memory Read SaveToFile SaveToStream Seek SetPointer SizeBoundsSeek
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
