Payload

Raw payload

Constructor

new Payload()

Implements

Members

buffer :Buffer

Underlying buffer synced with the properties.
Type:
  • Buffer
Implements

length :number

Number of bytes occupied by the layer.
Type:
  • number
Implements

osi :OsiModelLayers

Respective protocol OSI layer.
Implements

Methods

toObject() → {Object}

Returns an object with all protcol fields without owning the underlying buffer. Useful to read all the data and use it without having to deal with binary representation.
Implements
Returns:
- All protocol fields
Type: 
Object