Options
All
  • Public
  • Public/Protected
  • All
Menu

It represents an IPP message.

Hierarchy

  • IppMessage

Index

Constructors

Properties

Methods

Constructors

Properties

_bytes: Number

Methods

  • decode(buf: Buffer, start?: number, end?: number): any
  • It decodes an IPP binary message into an IPP JSON object.

    Parameters

    • buf: Buffer

      The buffer containing the IPP binary message.

    • Optional start: number

      An optional start-offset from where to start parsing the message (defaults to 0).

    • Optional end: number

      An optional end-offset specifying at which byte to end the decoding (defaults to buffer's length).

    Returns any

    A JSON object representing the IPP message.

  • encode(obj: any): Buffer
  • It encodes an IPP JSON object into an IPP binary message.

    Parameters

    • obj: any

      The IPP message as a JSON object.

    Returns Buffer

    A Buffer object representing the encoded IPP message.