BufferingResource
constructor(resource: Resource, resourceLength: Long? = null, bufferSize: Int = DEFAULT_BUFFER_SIZE)
Parameters
resource
Underlying resource which will be buffered.
resourceLength
The total length of the resource, when known. This can improve performance by avoiding requesting the length from the underlying resource.
bufferSize
Size of the buffer chunks to read.