RangeSource
Random access to a file whose bytes are fetched on demand (a remote file, a Blob, a file
handle). Matches the viewer’s source interface (C3a).
Properties
Section titled “Properties”blockSize?
Section titled “blockSize?”
readonlyoptionalblockSize?:number
The block size this source prefers fetches aligned to (HTTP: fewer, larger requests).
readonlysize:number
The file’s size in bytes.
Methods
Section titled “Methods”read()
Section titled “read()”read(
offset,length,options?):Promise<Uint8Array<ArrayBufferLike>>
The length bytes at offset (exactly that many: the file is at least offset + length
long). Rejects when signal aborts.
Parameters
Section titled “Parameters”offset
Section titled “offset”number
length
Section titled “length”number
options?
Section titled “options?”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>