Constructor
new CompressedDataPacket(configopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
<optional> |
Full configuration, defaults to openpgp.config |
- Source:
Members
algorithm :enums.compression
Compression algorithm
Type:
- enums.compression
- Source:
compressed :Uint8Array|ReadableStream.<Uint8Array>
Compressed packet data
Type:
- Uint8Array | ReadableStream.<Uint8Array>
- Source:
packets :PacketList
List of packets
Type:
- Source:
Methods
compress()
Compress the packet data (member decompressedData)
- Source:
(async) decompress(configopt)
Decompression method for decompressing the compressed data read by read_packet
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
<optional> |
Full configuration, defaults to openpgp.config |
- Source:
(async) read(bytes, configopt)
Parsing function for the packet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bytes |
Uint8Array | ReadableStream.<Uint8Array> | Payload of a tag 8 packet |
|
config |
Object |
<optional> |
Full configuration, defaults to openpgp.config |
- Source:
write() → {Uint8Array|ReadableStream.<Uint8Array>}
Return the compressed packet.
- Source:
Returns:
Binary compressed packet.
- Type
- Uint8Array | ReadableStream.<Uint8Array>