GetRangeSupported

Document parts, variable data, document editing

Description

Reports whether a TCallbackByteRangeSource can serve ranged reads

Syntax

Function TCallbackByteRangeSource.GetRangeSupported: Boolean;

Remarks

The result is True only when a read callback is assigned and the total source size is positive

LoadFromRangeSource rejects a source size of zero or less and a missing read callback before it creates the adapter, so both conditions hold for adapters created by that entry point

Return values

TrueA read callback is assigned and the total size is greater than zero
FalseNo read callback is assigned or the total size is not positive

See also

ReadRange, GetTotalSize, IsRangeAvailable, GetLastError, LoadFromRangeSource