Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for IZipResourceProvider

Hierarchy

  • IZipResourceProviderOptions

Index

Properties

Optional chunkCacheSize

chunkCacheSize?: number

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

When streaming the Zip file over internet, it is recommended to increase this option to prevent downloading the same chunk twice.

Defaults to 16 MB (16000000)

default

16000000

int

Optional maxChunkSize

maxChunkSize?: number

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.

Defaults to 400kB

default

400000

int

Optional preferredChunkSize

preferredChunkSize?: number

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

The preferredChunkSize tells ZipResourceProvider how big each chunk should be in bytes. Note that the actual chunkSize value will be less or more than this value depending on how the files are laid out inside the archive.

Defaults to 100kB

default

100000

int

Optional transferBuffers

transferBuffers?: boolean

If true, ArrayBuffers returned by IRandomAccessDataSource will be "transferred" to the zip webworker which may increase performance. If false, ArrayBuffers will be copied to the webworker.

Defaults to false.

default

false

nativeignore

Generated using TypeDoc