Helper function that returns size of input (from current position to the end) represented by Handle (and opened and operated on by members of IOFunctions).
function GetInputSize(IOFunctions: TIOFunctions; Handle: TImagingHandle): LongInt;
ImagingIO (at line 56)