new require("packet/compressed")()
- Source:
- Source:
Members
-
algorithm :compression
-
Type:
- compression
- Source:
-
packets :module:packet/packetlist
-
Type:
- Source:
Methods
-
compress(type, data) → {String}
-
Compress the packet data (member decompressedData)
Parameters:
Name Type Description type
Integer Algorithm to be used // See RFC 4880 9.3 data
String Data to be compressed - Source:
Returns:
The compressed data stored in attribute compressedData- Type
- String
-
decompress() → {String}
-
Decompression method for decompressing the compressed data read by read_packet
- Source:
Returns:
The decompressed data- Type
- String
-
read(input, position, len) → {module:packet/compressed}
-
Parsing function for the packet.
Parameters:
Name Type Description input
String Payload of a tag 8 packet position
Integer Position to start reading from the input string len
Integer length of the packet or the remaining length of input at position - Source:
Returns:
Object representation