ZipResourceProviderOptions

data class ZipResourceProviderOptions(val chunkCacheSize: Int = 16000000, val maxChunkSize: Int = 400000, val preferredChunkSize: Int = 100000)

Options for IZipResourceProvider

Constructors

Link copied to clipboard
fun ZipResourceProviderOptions(chunkCacheSize: Int = 16000000, maxChunkSize: Int = 400000, preferredChunkSize: Int = 100000)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard
val chunkCacheSize: Int = 16000000

The size of the chunk cache in bytes. A value of less than or equal to 0 will disable caching of chunks.

Link copied to clipboard
val maxChunkSize: Int = 400000

ZipResourceProvider tries to fit at least one file in a chunk. If a file is larger than "maxChunkSize" bytes, the file will be requested with multiple chunks.

Link copied to clipboard
val preferredChunkSize: Int = 100000

ZipResourceProvider reads the zip-archive in chunks. The chunks are aligned to match the one or more compressed files within the archive.