THPDFRandomAccessSource.ReadAt Method

Reads Count bytes starting at the supplied zero-based Offset into Buffer

Declaration

function ReadAt(Offset: Int64; var Buffer;
  Count: Longint): Longint; virtual; abstract;

Unit

HPDFDoc

Parameters

NamePurpose
OffsetZero-based byte offset at which to begin reading; must be within the range reported by GetSize
BufferUntyped var buffer that receives the bytes; the caller guarantees it can hold at least Count bytes
CountMaximum number of bytes to transfer

Return value

The number of bytes actually transferred, from zero through Count. A short read at the documented end of file is treated as end-of-stream, not as an error

Usage notes

Related APIs