couchbase
    Preparing search index...

    Class RawStringTranscoder

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

    Implements

    Index

    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 string

    • 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]