whiteflag-js
    Preparing search index...

    Function encodeField

    • Function

      Encodes a Whiteflag message field encodeField

      Parameters

      • value: string

        the message field value

      • codec: WfCodec

        the message field encoding: 'utf-8', 'bin', 'dec', 'hex', 'datetime', 'duration', 'lat', 'long'

      • version: v1 = WfVersion.v1

        the version of the Whiteflag specification

      Returns BinaryBuffer

      a binary buffer with the compressed encoded field

      v1-draft.7

      4.1.2 Message Encoding, 4.1.3 Message Compression