Sign in Join
FPDoc Onlineexperiment

TNullStream.Read function

Member of TNullStreampublicIn unit NullStream

Read null bytes from the stream.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.