couchbase
    Preparing search index...

    Class RawBinaryTranscoder

    The raw binary transcoder provides an explicit mechanism for storing and retrieving raw byte 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 any

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

      Parameters

      • value: Buffer

        The value to encode.

      Returns [Buffer, number]