Sign in Join
FPDoc Onlineexperiment

TASCII85DecoderStream.Read function

Member of TASCII85DecoderStreampublicIn unit Ascii85

Read data from stream.

Declaration

pascal
function Read(var aBuffer; aCount: LongInt): LongInt; override

Arguments

aBuffer

Buffer to transfer data to.

aCount

Number of bytes to transfer to buffer.

Function result

Actual number of bytes transferred to buffer.

Description

Read attempts to read aCount bytes from the stream and places them in aBuffer. It reads only as much data as is available. The actual number of read bytes is returned.

The read method reads as much data from the input stream as needed to get to aCount bytes, in general this will be aCount*5/4 bytes.

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