Sign in Join
FPDoc Onlineexperiment

TNullStream class

In unit NullStream

Empty data stream.

Declaration

pascal
TNullStream = class(THandleStream)

Inheritance

  1. TNullStream
  2. THandleStream
  3. TStream
  4. TObject

Description

TNullStream discards any data written to it (but keeps a virtual size) and returns 0 bytes when read from. It emulates a TMemoryStream: When writing to the stream, the size is increased as needed. When reading, the maximum number of returned bytes is limited to the size of the stream.

See also

Methods

GetSizeprotectedReturn the size of the stream.
SetSizeprotected
GetPositionprotected
InvalidSeekprotected
ReadpublicRead null bytes from the stream.
WritepublicWrite to stream.
SeekpublicSet current position in the stream.
CreatepublicCreate a new instance.

Inherited

From THandleStream (1)

Handle

From TObject (41)

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