Decodes provided Buffer object to plc WSTRING using ucs2 encoding. Also removes empty bytes from the end.

  • Parameters

    • data: Buffer

      Buffer data that contains plc WSTRING

    Returns string