Module: packet/compressed

packet/compressed

new require("packet/compressed")()

Source:
Source:

Members

algorithm :compression

Type:
  • compression
Source:

packets :packetlist

Type:
  • packetlist
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
Type
module:packet/compressed