( archive: ArchiveReader, imageIndex: Map<string, ArchiveEntry>, fileSize = 0, imageCount = 0 )
| 18 | * Set the active ZIP archive for lazy image extraction. |
| 19 | */ |
| 20 | export function setActiveZipArchive( |
| 21 | archive: ArchiveReader, |
| 22 | imageIndex: Map<string, ArchiveEntry>, |
| 23 | fileSize = 0, |
| 24 | imageCount = 0 |
| 25 | ): void { |
| 26 | clearActiveZipArchive(); |
| 27 | |
| 28 | activeArchive = archive; |
| 29 | activeImageIndex = imageIndex; |
| 30 | activeZipFileSize = fileSize; |
| 31 | activeZipImageCount = imageCount; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Get the active ZIP image index. |
no test coverage detected