IPLByteRangeAvailabilitySource

Data types

Description

Optional capability interface a byte-range source implements to answer availability queries without fetching the bytes

The byte-range stream consults it chunk by chunk for the parts of a request that are not already cached

Syntax

Delphi

IPLByteRangeAvailabilitySource = Interface
  ['{AA6CC288-442E-45BF-81B4-72CC1A0E85A5}']
  Function IsRangeAvailable(StartOffset: Int64; Count: Integer): Boolean;
End;

Remarks

The stream splits an uncached request at chunk boundaries and asks the source about each segment before reporting the whole request as available

A source that does not implement the interface is treated as unable to serve uncached ranges, so TByteRangeStream.IsRangeAvailable returns False for them

See also

IPLByteRangeSource, IsRangeCached, TByteRangeStreamAvailability, StartPrefetch