Sign in Join
FPDoc Onlineexperiment

TRawByteStringStream class

In unit Classes

TBytesStream descendent with some single-byte string methods.

Declaration

pascal
TRawByteStringStream = class(TBytesStream)

Inheritance

  1. TRawByteStringStream
  2. TBytesStream
  3. TMemoryStream
  4. TCustomMemoryStream
  5. TStream
  6. TObject

Description

TRawByteStringStream is a TBytesStream descendent which introduces some auxiliary methods that help with inserting or extracting single-byte strings from the data: DataString ReadString 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.

See also

Methods

CreatepublicCreate a new instance of TRawByteStringStream.
DataStringpublicReturn the stream contents as a single-byte string.
ReadStringpublicRead a string from the stream.
WriteStringpublicWrite a string to the stream.

Inherited

From TBytesStream (2)

Bytes Realloc

From TMemoryStream (7)

Capacity Clear Destroy LoadFromFile LoadFromStream SetSize Write

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.