ByteRangeSource

@ObjCName(swiftName = "__KotlinByteRangeSource")
interface ByteRangeSource(source)

Caller-provided byte range source used by the PMTiles reader.

Functions

Link copied to clipboard
abstract suspend fun read(range: ByteRange): ByteString

Reads exactly the requested number of bytes from range.

Link copied to clipboard
abstract suspend fun size(): ULong

Returns the stable archive size in bytes.