Difference between revisions of "Lua:byteTableToWideString"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
Line 1: Line 1:
'''function''' byteTableToWideString(''Table'')
+
'''function''' byteTableToWideString(''Table'') ''':''' string
  
 
Converts a byte table to a widestring and converts that to a string.
 
Converts a byte table to a widestring and converts that to a string.

Revision as of 02:05, 11 March 2017

function byteTableToWideString(Table) : string

Converts a byte table to a widestring and converts that to a string.


Function Parameters

Parameter Type Description
Table table The table of bytes to convert


Examples

Code:

 local bt = { 0x74, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74, 0x00, 0x00, 0x00 }
 local value = byteTableToWideString(bt)
 print(value)

Output:

 test 


See also

Related Functions