RandomAccess

A synchronously readable random-access source.

Implementations must fill every requested range and must not call back into PdfViewer from read.

Properties

Link copied to clipboard
abstract val size: Long

Total byte length of the source.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun read(offset: Long, destination: ByteArray, destinationOffset: Int, length: Int): Int

Reads up to length bytes starting at offset into destination at destinationOffset and returns how many bytes were read.