Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultDataTransformer

Package version

The default data transformer that will be used by the Azure SDK.

Hierarchy

  • DefaultDataTransformer

Implements

Index

Methods

Methods

decode

  • decode(body: any): any
  • property

    {Function} [decode] A function that takes the body property from an AMQP message (an AMQP Data type (data section in rhea terms)) and returns the decoded message body. If it cannot decode the body then it returns the body as-is.

    Parameters

    • body: any

      The AMQP message body

    Returns any

    decoded body or the given body as-is.

encode

  • encode(body: any): any
  • A function that takes the body property from an EventData object and returns an encoded body (some form of AMQP type).

    Parameters

    • body: any

      The AMQP message body

    Returns any

    encodedBody - The encoded AMQP message body as an AMQP Data type (data section in rhea terms). Section object with following properties:

    • typecode: 117 (0x75)
    • content: The given AMQP message body as a Buffer.
    • multiple: true | undefined.

Generated using TypeDoc