Skip to content

TRawByteStringStream

TBytesStream descendent with some single-byte string methods.

Declaration

Source position: classesh.inc line 1699

type

  TRawByteStringStream = class(TBytesStream)
  public
    constructor Create; overload;
    function DataString : RawByteString;
    function ReadString : RawByteString;
    procedure WriteString;
  end;

Description

TRawByteStringStream is a TBytesStream descendent which introduces some auxiliary methods that help with inserting or extracting single-byte strings from the data: DataStringReadString and WriteString.

In difference with TStringStream, the data has no codepage information associated with it, so the data is always considered to use the default codepage.

Methods

Member Visibility Description
Create public Create a new instance of TRawByteStringStream.
DataString public Return the stream contents as a single-byte string.
ReadString public Read a string from the stream.
WriteString public Write a string to the stream.
See all Methods

See also

Name Description
TStringStream Stream that stores its data in a string.
DataString Return the stream contents as a single-byte string.
ReadString Read a string from the stream.
WriteString Write a string to the stream.