chunkSize

val chunkSize: Int = 128000

Sets which chunk size to use when requesting chunks from the IRandomAccessDataSource instance.

If enableDeterministicChunkRequests is false:

  • This value defines the maximum chunk size that will be used per request.

  • Smaller chunks may be requested.

If enableDeterministicChunkRequests is true:

  • All requests will use the specified chunk size, with the exception of the last chunk which might be smaller (but still deterministic).

  • The startOffset used in the call to IRandomAccessDataSource.fetchChunk() is guaranteed to be a multiple of the chunkSize.