TNullStream class
Empty data stream.
Declaration
TNullStream = class(THandleStream)Inheritance
- TNullStream
- THandleStream
- TStream
- 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
GetSize | protected | Return the size of the stream. |
SetSize | protected | |
GetPosition | protected | |
InvalidSeek | protected | |
Read | public | Read null bytes from the stream. |
Write | public | Write to stream. |
Seek | public | Set current position in the stream. |
Create | public | Create a new instance. |
Inherited
From THandleStream (1)
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.
