Constructor
new CompressedDataPacket(config)
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | (optional) full configuration, defaults to openpgp.config |
- Source:
Members
algorithm :compression
Compression algorithm
Type:
- compression
- Source:
compressed :Uint8Array|ReadableStream.<Uint8Array>
Compressed packet data
Type:
- Uint8Array | ReadableStream.<Uint8Array>
- Source:
deflateLevel
zip/zlib compression level, between 1 and 9
- Source:
packets :PacketList
List of packets
Type:
- Source:
tag :module:enums.packet
Packet type
Type:
- Source:
Methods
compress()
Compress the packet data (member decompressedData)
- Source:
(async) decompress()
Decompression method for decompressing the compressed data read by read_packet
- Source:
(async) read(bytes)
Parsing function for the packet.
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | ReadableStream.<Uint8Array> | Payload of a tag 8 packet |
- Source:
write() → {Uint8Array|ReadableStream.<Uint8Array>}
Return the compressed packet.
- Source:
Returns:
binary compressed packet
- Type
- Uint8Array | ReadableStream.<Uint8Array>