THPDFRandomAccessSource.IsRangeAvailable Method

Tells you whether the byte range starting at Offset for Count bytes sits wholly inside the source size

Declaration

function IsRangeAvailable(Offset, Count: Int64): boolean; virtual;

Unit

HPDFDoc

Parameters

NamePurpose
OffsetZero-based byte offset at which the range starts
CountLength of the range in bytes

Return value

True where both offsets are non-negative and the whole range fits inside GetSize, otherwise False

Usage notes

Related APIs