THPDFRandomAccessSource.TransferAt Method

Copies bytes starting at Offset into a destination stream in 64 KB chunks and returns the number of bytes transferred

Declaration

function TransferAt(Offset, Count: Int64;
  Destination: TStream): Int64; virtual;

Unit

HPDFDoc

Parameters

NamePurpose
OffsetZero-based byte offset to start reading from
CountNumber of bytes to transfer, clamped to the bytes remaining after Offset
DestinationStream that receives the copied bytes; must not be nil

Return value

Number of bytes actually written to Destination; zero when Offset is negative, Count is not positive, or Offset is at or beyond the source size

Usage notes

Related APIs