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
Name | Type |
---|---|
bitFlag | number |
compressedLength | number |
compressionMethod | number |
crc32 | number |
date | Date | null |
uncompressedLength | number |
versionNeeded | number |
Defined in
ArchivedFile
Ƭ ArchivedFile: { content
: Uint8Array
; name
: string
} & ArchivedStat
Defined in
ArchivedStat
Ƭ ArchivedStat: Object
Type declaration
Name | Type |
---|---|
comment | string |
date | Date | null |
mode | number |
type | "file" | "directory" |
Defined in
CompressedFile
Ƭ CompressedFile: Object
Type declaration
Name | Type |
---|---|
comment | Uint8Array |
compressedLength | number |
compressionMethod | number |
content | Uint8Array |
crc32 | number |
date | Date | null |
mode | number |
name | Uint8Array |
uncompressedLength | number |
Defined in
ReadFn
Ƭ ReadFn: (name
: string
) => Promise
<Uint8Array
>
Type declaration
▸ (name
): Promise
<Uint8Array
>
Parameters
Name | Type |
---|---|
name | string |
Returns
Promise
<Uint8Array
>
Defined in
SnapshotFn
Ƭ SnapshotFn: () => Promise
<Uint8Array
>
Type declaration
▸ (): Promise
<Uint8Array
>
Returns
Promise
<Uint8Array
>
Defined in
UncompressedFile
Ƭ UncompressedFile: Object
Type declaration
Name | Type |
---|---|
comment | Uint8Array |
content | Uint8Array |
date | Date | null |
mode | number |
name | Uint8Array |
Defined in
WriteFn
Ƭ WriteFn: (name
: string
, bytes
: Uint8Array
) => Promise
<void
>
Type declaration
▸ (name
, bytes
): Promise
<void
>
Parameters
Name | Type |
---|---|
name | string |
bytes | Uint8Array |
Returns
Promise
<void
>
Defined in
Functions
readZip
▸ readZip(data
, location
): Promise
<ArchiveReader
>
Parameters
Name | Type |
---|---|
data | Uint8Array |
location | string |
Returns
Promise
<ArchiveReader
>
Defined in
writeZip
▸ writeZip(): ArchiveWriter