THPDFRandomAccessSource.TransferAt Method

Copies bytes starting at Offset into a destination stream in 64 KB chunks, handing back the number of bytes transferred

Declaration

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

Unit

HPDFDoc

Parameters

NamePurpose
OffsetZero-based byte offset at which reading starts
CountNumber of bytes to transfer, clamped to whatever remains after Offset
DestinationStream that takes the copied bytes; must not be nil

Return value

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

Usage notes

Related APIs