[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'idea' (#fcl)

TIDEAEncryptStream.Read

Read data from the stream

Declaration

Source position: idea.pp line 88

public function TIDEAEncryptStream.Read(

  var Buffer;

  Count: LongInt

):LongInt; override;

Arguments

Buffer

  

Buffer to store read data

Count

  

Number of bytes to read.

Function result

Number of bytes read

Description

Readalways raises an EIDEAErrorexception, because the encryption stream is write-only. To read from an encrypted stream, use the Readmethod of the TIDEADecryptStreamdecryption stream.

Errors

An EIDEAErrorexception is raised when calling this method.

See also

Write

  

Write bytes to the stream to be encrypted

TIDEADecryptStream

  

IDEA Decryption stream.

TIDEADecryptStream.Read

  

Reads data from the stream, decrypting it as needed