Function Utf16

  • @Utf16 defines the decorated property as an unsigned 16 bit integer encoded as an utf-16 string.

    Type Parameters

    • This extends object

      The type of the class the decorator is applied to.

    • Value

      The type of the decorated property.

    Parameters

    Returns void

    The typical use-case would be to have a generic space of a pre-defined size with a an utf encoded string.

    class Protocol {
    @Size(64)
    @Utf16
    foo: string
    }

    This decorator is supposed to be used in conjunction of a controller.