[Overview][Classes][Index] Reference for unit 'nullstream' (#fcl)

TNullStream.Read

Read null bytes from the stream

Declaration

Source position: nullstream.pp line 40

public function TNullStream.Read(

  var Buffer;

  Count: LongInt

):LongInt; override;

Arguments

Buffer

  

Buffer to zero out.

Count

  

Maximum number of bytes to zero out

Function result

Actual number or zero bytes

Description

Read reads Count null bytes from the stream. Count can be at most Size. The Buffer will be filled with null bytes, effectively zeroing out the memory. The size can be increased using Write or by explicitly setting Size.

See also

TNullStream.Write

  

Write to stream

#rtl.classes.TStream.Size


Documentation generated on: May 14 2021