Skip to content

Endo API documentation - v0.2.0 / Exports / @endo/zip

Module: @endo/zip

Table of contents

Classes

Interfaces

Type Aliases

Functions

Type Aliases

ArchiveHeaders

Ƭ ArchiveHeaders: Object

Type declaration

NameType
bitFlagnumber
compressedLengthnumber
compressionMethodnumber
crc32number
dateDate | null
uncompressedLengthnumber
versionNeedednumber

Defined in

src/types.js:46


ArchivedFile

Ƭ ArchivedFile: { content: Uint8Array ; name: string } & ArchivedStat

Defined in

src/types.js:16


ArchivedStat

Ƭ ArchivedStat: Object

Type declaration

NameType
commentstring
dateDate | null
modenumber
type"file" | "directory"

Defined in

src/types.js:11


CompressedFile

Ƭ CompressedFile: Object

Type declaration

NameType
commentUint8Array
compressedLengthnumber
compressionMethodnumber
contentUint8Array
crc32number
dateDate | null
modenumber
nameUint8Array
uncompressedLengthnumber

Defined in

src/types.js:36


ReadFn

Ƭ ReadFn: (name: string) => Promise<Uint8Array>

Type declaration

▸ (name): Promise<Uint8Array>

Parameters
NameType
namestring
Returns

Promise<Uint8Array>

Defined in

src/types.js:55


SnapshotFn

Ƭ SnapshotFn: () => Promise<Uint8Array>

Type declaration

▸ (): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Defined in

src/types.js:74


UncompressedFile

Ƭ UncompressedFile: Object

Type declaration

NameType
commentUint8Array
contentUint8Array
dateDate | null
modenumber
nameUint8Array

Defined in

src/types.js:24


WriteFn

Ƭ WriteFn: (name: string, bytes: Uint8Array) => Promise<void>

Type declaration

▸ (name, bytes): Promise<void>

Parameters
NameType
namestring
bytesUint8Array
Returns

Promise<void>

Defined in

src/types.js:67

Functions

readZip

readZip(data, location): Promise<ArchiveReader>

Parameters

NameType
dataUint8Array
locationstring

Returns

Promise<ArchiveReader>

Defined in

src/reader.js:54


writeZip

writeZip(): ArchiveWriter

Returns

ArchiveWriter

Defined in

src/writer.js:55