[Overview][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Empty data stream
Source position: nullstream.pp line 30
type TNullStream = class(THandleStream) |
||
public |
||
function Read(); override; |
|
Read null bytes from the stream |
function Write(); override; |
|
Write to stream |
function Seek(); override; |
|
Set current position in the stream |
constructor Create; |
|
Create a new instance |
end; |
|
Empty data stream |
|
| | ||
| | ||
| | ||
TNullStream discards any data written to it (but keeps a virtual size) and returns 0 bytes when read from. It emulates a #rtl.classes.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.
|
Read null bytes from the stream |
|
|
Write to stream |
|