Skip to content

@pumpkin-plugins/bedrock-addon-manager API / packs/zip / readZipEntry

Function: readZipEntry() ​

readZipEntry(source, entry): Uint8Array

Defined in: packages/bedrock-addon-manager/src/packs/zip.ts:93

Reads and inflates one file of a zip archive. At most entry.size bytes are produced.

Parameters ​

source ​

ByteSource

entry ​

ZipEntry

Returns ​

Uint8Array

Throws ​

When the entry can't be read or uses a compression method other than store or deflate.

pumpkin-plugins documentation