Sign in Join
FPDoc Onlineexperiment

TStream object

In unit Objects

Base stream class.

Declaration

pascal
TStream = class(TObject)

Inheritance

  1. TStream
  2. TObject

Descends from it: TBufBlobStream TCachedDataStream TCustomMemoryStream TDosStream TGZFileStream TGZipCompressionStream TGZipDecompressionStream THandleStream TMemoryStream TOwnerStream TProxyAggregateStream TProxyStream TResourceDataStream

Description

The TStream object is the ancestor for all streaming objects, i.e. objects that have the capability to store and retrieve data.

It defines a number of methods that are common to all objects that implement streaming, many of them are virtual, and are only implemented in the descendent types.

Programs should not instantiate objects of type TStream directly, but instead instantiate a descendant type, such as TDosStream, TMemoryStream.

See also

Methods

InitConstructor for TStream instance.
GetRead an object definition from the stream.
StrReadRead a null-terminated string from the stream.
GetPosReturn current position in the stream.
GetSizeReturn the size of the stream.
ReadStrRead a shortstring from the stream.
OpenOpen the stream.
CloseClose the stream.
ResetReset the stream.
FlushFlush the stream data from the buffer, if any.
TruncateTruncate the stream size on current position.
PutWrite an object to the stream.
StrWriteWrite a null-terminated string to the stream.
WriteStrWrite a pascal string to the stream.
SeekSet stream position.
ErrorSet stream status.
ReadRead data from stream to buffer.
WriteWrite a number of bytes to the stream.
CopyFromCopy data from another stream.

Fields

StatusCurrent stream status.
ErrorInfoAdditional error info when there is an error.
StreamSizeCurrent size of the stream.
PositionCurrent Stream position.
TPCompatibleIf set to True streamed data is written in a TP compatible format.

Inherited

From TObject (42)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Destroy 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.