Sign in Join
FPDoc Onlineexperiment

TCustomMemoryStream.Read function

Member of TCustomMemoryStreampublicIn unit Classes

Reads Count bytes from the stream into buffer.

Declaration

pascal
function Read(var Buffer; Count: LongInt): LongInt; override

Description

Read reads Count bytes from the stream into the memory pointed to by buffer. It returns the number of bytes actually read.

This method overrides the Read method of TStream. It will read as much bytes as are still available in the memory area pointer to by Memory. After the bytes are read, the internal stream position is updated.

See also

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