Model loading · function
readZip
Every file in an archive, decompressed.
Explained in Importing models.
function readZip(buffer: ArrayBuffer, inflate?: Inflate | null): ZipEntry[]import { readZip } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
buffer | ArrayBuffer | |
inflate? | Inflate | null |
In depth
Directory entries are skipped: they are zero-length records whose names end in a slash, and a caller asking for files does not want them.