Encodes provided string to a Buffer object as plc WSTRING using ucs2 encoding

  • Parameters

    • str: string

      String to encode

    Returns Buffer