Skip to main content

Function: widenRead()

widenRead(range, blockSize): ByteRange

Defined in: merge.ts:92

Widen a read shorter than blockSize to the aligned block span that contains it, so small metadata reads (cogeotiff reads one offset-table entry at a time) become block reads that neighbouring entries hit in the cache. A read of blockSize or more is returned as is.

Parameters​

range​

ByteRange

blockSize​

number

Returns​

ByteRange