Download a portion of a (large) file from iCloud drive

I have a large file saved in iCloud drive. I need just a portion of that file.

func ubiquitousData(file: URL, offset: UInt64, size: UInt64) async -> Data {
    // downloads just the portion of the ubiquitous `file`.
}

FileManager already has an api that downloads the full file. Is there a way to download just a portion of the file?

Download a portion of a (large) file from iCloud drive
 
 
Q