Class RawJsonTranscoder

The raw JSON transcoder provides an explicit mechanism for storing and retrieving JSON data.

Implements

Constructors

Methods

Constructors

Methods

  • Decodes a buffer and flags tuple back to the original type of the document.

    Parameters

    • bytes: Buffer

      The bytes that were previously encoded.

    • flags: number

      The flags associated with the data.

    Returns Buffer

  • Encodes the specified value, returning a buffer and flags that are stored to the server and later used for decoding.

    Parameters

    • value: string

      The value to encode.

    Returns [Buffer, number]